advancedrelay.laygo
Class Laygo

java.lang.Object
  |
  +--advancedrelay.laygo.Laygo

public final class Laygo
extends java.lang.Object

JNI wrapper class for LayGO API functions defined in laygo.h and manifest constants defined in laygodef.h. Function arguments and constants are fully documented in the LayGO API Manual.

Use of this class requires laygojni.dll (for Windows platforms) or laygojni.so (for Solaris or Linux).

A library must be loaded using class LaygoLib any other method in this class may be called.

Capitalization of function names matches the prototypes in laygo.h without the lgo_ prefix.


Field Summary
static int ERROR_BUFFER_POOL_INITIALIZATION_FAILURE
           
static int ERROR_BUFFER_SIZE
           
static int ERROR_CLIENTS_CONNECTED
           
static int ERROR_CONFIGURATION_FILE_NOT_FOUND
           
static int ERROR_CONFIGURATION_FILE_READ_ERROR
           
static int ERROR_CONFIGURATION_FILE_WRITE_ERROR
           
static int ERROR_CONFIGURATION_NOT_DEFINED
           
static int ERROR_CONFIGURATION_NOT_FOUND
           
static int ERROR_DATA_WAITING
           
static int ERROR_DRIVER_MODULE_FILE_NOT_FOUND
           
static int ERROR_DRIVER_MODULE_FILE_READ_ERROR
           
static int ERROR_DRIVER_MODULE_INITIALIZATION_FAILURE
           
static int ERROR_DRIVER_NOT_INSTALLED
           
static int ERROR_EVENT_WAITING
           
static int ERROR_HARDWARE_CONFIGURATION_CONFLICT
           
static int ERROR_HARDWARE_INITIALIZATION_FAILURE
           
static int ERROR_INVALID_BOARD_ID
           
static int ERROR_INVALID_CID
           
static int ERROR_INVALID_COMMAND
           
static int ERROR_INVALID_CONFIGURATION
           
static int ERROR_INVALID_DRIVER_CONFIGURATION
           
static int ERROR_INVALID_DRIVER_MODULE
           
static int ERROR_INVALID_DRIVER_VERSION
           
static int ERROR_INVALID_HARDWARE_CONFIGURATION
           
static int ERROR_INVALID_HARDWARE_VERSION
           
static int ERROR_INVALID_INPUT_BUFFER
           
static int ERROR_INVALID_IOCTL_FUNCTION
           
static int ERROR_INVALID_IOCTL_PARAMETERS
           
static int ERROR_INVALID_OUTPUT_BUFFER
           
static int ERROR_INVALID_PROTOCOL
           
static int ERROR_INVALID_STACK_CONFIGURATION
           
static int ERROR_INVALID_STACK_ID
           
static int ERROR_INVALID_USER_ID
           
static int ERROR_INVALID_WRITE_DATA_SIZE
           
static int ERROR_MAX
           
static int ERROR_MIN
           
static int ERROR_NO_SYSTEM_BUFFER
           
static int ERROR_NOTHING_WAITING
           
static int ERROR_OUT_OF_CONNECTIONS
           
static int ERROR_OUT_OF_MEMORY
           
static int ERROR_PROTOCOL_BLOCKING
           
static int ERROR_SERVER_ACCESS_NOT_ENABLED
           
static int ERROR_SERVER_CONNECTED
           
static int ERROR_SERVER_NOT_CONNECTED
           
static int ERROR_SERVER_NOT_FOUND
           
static int ERROR_SERVICE_DATABASE_NOT_FOUND
           
static int ERROR_SERVICE_NOT_AVAILABLE
           
static int ERROR_SERVICE_UNKNOWN
           
static int ERROR_SPECIAL_DATA_WAITING
           
static int ERROR_STACK_INITIALIZATION_FAILURE
           
static int ERROR_TOO_MANY_CLIENTS
           
static int ERROR_TRANSMISSION_BLOCKED
           
static int ERROR_UNKNOWN_PROTOCOL
           
static int ERROR_WRITE_QUEUE_FULL
           
static int EVENT_ACCEPT
           
static int EVENT_CANCEL
           
static int EVENT_CONFIRM
           
static int EVENT_CONNECT
           
static int EVENT_CONNECT_ACCEPT
           
static int EVENT_CONNECT_REFUSE
           
static int EVENT_CONNECT_REQUEST
           
static int EVENT_CONNECT_TIMEOUT
           
static int EVENT_CONNECTED
           
static int EVENT_DATA_ABORTED_FRAME
           
static int EVENT_DATA_CRC_ERROR
           
static int EVENT_DATA_LENGTH_ERROR
           
static int EVENT_DATA_OK
           
static int EVENT_DATA_SPECIAL
           
static int EVENT_DISCONNECT
           
static int EVENT_DISCONNECT_CONFIRMATION
           
static int EVENT_DISCONNECT_REQUEST
           
static int EVENT_DISCONNECT_TIMEOUT
           
static int EVENT_DISCONNECTED
           
static int EVENT_DISCONNECTING
           
static int EVENT_IOCTL
           
static int EVENT_LISTEN
           
static int EVENT_MAX
           
static int EVENT_NONE
           
static int EVENT_PACKET_EVENT_MAX
           
static int EVENT_PROTOCOL_MESSAGE
           
static int EVENT_REFUSE
           
static int EVENT_REOPEN
           
static int EVENT_RESET
           
static int EVENT_RESET_COMPLETED
           
static int EVENT_RESET_TIMEOUT
           
static int EVENT_RESETTING
           
static int EVENT_USER_EVENT_MAX
           
static int EVENT_WRITE
           
static int EVENT_XOFF
           
static int EVENT_XOFF_REQUEST
           
static int EVENT_XON
           
static int EVENT_XON_REQUEST
           
static int INVALID_CID
           
static int INVALID_EVENT
           
static int INVALID_MAJOR
           
static int INVALID_MINOR
           
static int INVALID_PROTOCOL
           
static int INVALID_STATE
           
static int PROTOCOL_FRAME_RELAY_MAJOR_DEVICE
           
static int PROTOCOL_FRAME_RELAY_SVC
           
static int PROTOCOL_FRAME_RELAY_VC
           
static int PROTOCOL_HDLC_LAPB
           
static int PROTOCOL_HDLC_NRM
           
static int PROTOCOL_LAPD_MAJOR_DEVICE
           
static int PROTOCOL_LAPD_TEI
           
static int PROTOCOL_MAX
           
static int PROTOCOL_RESERVED_16
           
static int PROTOCOL_RESERVED_17
           
static int PROTOCOL_RESERVED_3
           
static int PROTOCOL_RETURN
           
static int PROTOCOL_SDLC_HARDWARE
           
static int PROTOCOL_SYSTEM_BUFFER_POOL
           
static int PROTOCOL_SYSTEM_STACK
           
static int PROTOCOL_X21_BIS
           
static int PROTOCOL_X25_MAJOR_DEVICE
           
static int PROTOCOL_X25_PVC
           
static int PROTOCOL_X25_SVC
           
static int STATE_CLOSED
           
static int STATE_DATA_TRANSFER_XOFF
           
static int STATE_DATA_TRANSFER_XON
           
static int STATE_LISTENING
           
static int STATE_MAX
           
static int STATE_OPEN
           
static int STATE_RESETTING
           
static int STATE_WAITING_FOR_LOCAL_ACCEPT
           
static int STATE_WAITING_FOR_LOCAL_CONFIRMATION
           
static int STATE_WAITING_FOR_REMOTE_ACCEPT
           
static int STATE_WAITING_FOR_REMOTE_CONFIRMATION
           
 
Constructor Summary
Laygo()
           
 
Method Summary
static int Attach(java.lang.String service)
           
static int AttachProtocol(int protocol, int major, int minor)
           
static int CheckDriverModuleInitialization(int driver, int board)
           
static int CheckHardwareInitialization(int driver, int board)
           
static int ClearStatistics(int cid)
           
static int Close(int cid)
           
static int ConfigureStack(java.lang.String fileName)
           
static int ConnectAccept(int cid, byte[] buffer, int size)
           
static int ConnectReject(int cid, byte[] buffer, int size)
           
static int ConnectRequest(int cid, byte[] buffer, int size)
           
static int ConnectServer(int server)
           
static int ConnectServerIp(java.lang.String ipAddress)
           
static int ConnectServerLocal()
           
static int Detach(int cid)
           
static int DisableStack()
           
static int DiscardData(int cid)
           
static int DisconnectConfirm(int cid, byte[] buffer, int size)
           
static int DisconnectRequest(int cid, byte[] buffer, int size)
           
static int DisconnectServer()
           
static java.lang.String DllDescription(int code)
           
static java.lang.String DllErrorMessage(int code)
           
static java.lang.String DllName(int code)
           
static boolean DllTagToType(java.lang.String tag, Result type)
           
static int DllType()
           
static int DownloadDriverModule(int driver, int board, java.lang.String fileName)
           
static int EnableStack()
           
static java.lang.String ErrorMessage(int code)
           
static int Event(int cid, byte[] buffer, Result result)
           
static java.lang.String EventMessage(int code)
           
static java.lang.String FormatStatisticsTable(byte[] buffer, int protocol, java.lang.String newline)
           
static java.lang.String FormatStatusReport(byte[] buffer, java.lang.String newline)
           
static int GetBufferPoolStatistics(byte[] buffer, int size)
           
static int GetBufferPoolStatus(byte[] buffer, int size)
           
static int GetConfiguration(int cid, byte[] buffer, int size)
           
static int GetDefaultConfiguration(int protocol, byte[] buffer, int size)
           
static int GetHardwareId(int id)
           
static int GetStatistics(int cid, byte[] buffer, int size)
           
static int GetStatus(int cid, byte[] buffer, int size)
           
static int HeartbeatServer()
           
static int Initialize(int size)
           
static int InitializeHardware(int driver, int board)
           
static int InitializeServiceDatabase(java.lang.String fileName)
           
static int InitializeStack()
           
static int Ioctl(int cid, int function, byte[] inbuffer, int count, byte[] outbuffer, Result result)
           
static int IsStackInitialized()
           
static int Listen(int cid)
           
static int ListenCancel(int cid)
           
static int LoadConfiguration(java.lang.String fileName, int protocol, byte[] buffer, int size)
           
static int LoadLaygoDll(int dll)
           
static int MaxBufferSize(int cid)
           
static int Open(java.lang.String service)
           
static int OpenProtocol(int protocol, int major, int minor)
           
static int Poll(int cid, Result result)
           
static int Pop(int cid)
           
static int Protocol(int cid)
           
static java.lang.String ProtocolMessage(int code)
           
static int Push(int cid1, int cid2)
           
static int Read(int cid, byte[] buffer, int size)
           
static int ReadSpecial(int cid, byte[] buffer, int size, Result flags)
           
static int Reopen(int cid)
           
static int ResetRequest(int cid, byte[] buffer, int size)
           
static int RpcAttach(int server, java.lang.String service)
           
static int RpcAttachProtocol(int server, int protocol, int major, int minor)
           
static int RpcConnectServer(int server)
           
static int RpcConnectServerIp(java.lang.String ipAddress)
           
static int RpcConnectServerLocal()
           
static int RpcDisconnectServer(int server)
           
static int RpcGetHardwareId(int server, int driverId)
           
static int RpcHeartbeatServer(int server)
           
static int RpcMaxBufferSize(int server)
           
static int RpcOpen(int server, java.lang.String service)
           
static int RpcOpenProtocol(int server, int protocol, int major, int minor)
           
static int RpcShutdownServer(int server)
           
static int RpcValidateUserId(int server, int id)
           
static int SaveConfiguration(java.lang.String fileName, int protocol, byte[] buffer, int size)
           
static int SetConfiguration(int cid, byte[] buffer, int size)
           
static int SetDefaultConfiguration(int protocol, byte[] buffer, int size)
           
static int ShutdownServer(int server)
           
static int State(int cid)
           
static java.lang.String StateMessage(int code)
           
static java.lang.String[] StatisticMessages(int code)
           
static int Uninitialize()
           
static int UninitializeServiceDatabase()
           
static int UninitializeStack()
           
static int UnloadLaygoDll()
           
static int ValidateUserId(int id)
           
static int Write(int cid, byte[] buffer, int size)
           
static int WriteSpecial(int cid, byte[] buffer, int size, int flags)
           
static int Xoff(int cid)
           
static int Xon(int cid)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_BUFFER_POOL_INITIALIZATION_FAILURE

public static final int ERROR_BUFFER_POOL_INITIALIZATION_FAILURE
See Also:
Constant Field Values

ERROR_BUFFER_SIZE

public static final int ERROR_BUFFER_SIZE
See Also:
Constant Field Values

ERROR_CLIENTS_CONNECTED

public static final int ERROR_CLIENTS_CONNECTED
See Also:
Constant Field Values

ERROR_CONFIGURATION_FILE_NOT_FOUND

public static final int ERROR_CONFIGURATION_FILE_NOT_FOUND
See Also:
Constant Field Values

ERROR_CONFIGURATION_FILE_READ_ERROR

public static final int ERROR_CONFIGURATION_FILE_READ_ERROR
See Also:
Constant Field Values

ERROR_CONFIGURATION_FILE_WRITE_ERROR

public static final int ERROR_CONFIGURATION_FILE_WRITE_ERROR
See Also:
Constant Field Values

ERROR_CONFIGURATION_NOT_DEFINED

public static final int ERROR_CONFIGURATION_NOT_DEFINED
See Also:
Constant Field Values

ERROR_CONFIGURATION_NOT_FOUND

public static final int ERROR_CONFIGURATION_NOT_FOUND
See Also:
Constant Field Values

ERROR_DATA_WAITING

public static final int ERROR_DATA_WAITING
See Also:
Constant Field Values

ERROR_DRIVER_MODULE_FILE_NOT_FOUND

public static final int ERROR_DRIVER_MODULE_FILE_NOT_FOUND
See Also:
Constant Field Values

ERROR_DRIVER_MODULE_FILE_READ_ERROR

public static final int ERROR_DRIVER_MODULE_FILE_READ_ERROR
See Also:
Constant Field Values

ERROR_DRIVER_MODULE_INITIALIZATION_FAILURE

public static final int ERROR_DRIVER_MODULE_INITIALIZATION_FAILURE
See Also:
Constant Field Values

ERROR_DRIVER_NOT_INSTALLED

public static final int ERROR_DRIVER_NOT_INSTALLED
See Also:
Constant Field Values

ERROR_EVENT_WAITING

public static final int ERROR_EVENT_WAITING
See Also:
Constant Field Values

ERROR_HARDWARE_CONFIGURATION_CONFLICT

public static final int ERROR_HARDWARE_CONFIGURATION_CONFLICT
See Also:
Constant Field Values

ERROR_HARDWARE_INITIALIZATION_FAILURE

public static final int ERROR_HARDWARE_INITIALIZATION_FAILURE
See Also:
Constant Field Values

ERROR_INVALID_BOARD_ID

public static final int ERROR_INVALID_BOARD_ID
See Also:
Constant Field Values

ERROR_INVALID_CID

public static final int ERROR_INVALID_CID
See Also:
Constant Field Values

ERROR_INVALID_COMMAND

public static final int ERROR_INVALID_COMMAND
See Also:
Constant Field Values

ERROR_INVALID_CONFIGURATION

public static final int ERROR_INVALID_CONFIGURATION
See Also:
Constant Field Values

ERROR_INVALID_DRIVER_CONFIGURATION

public static final int ERROR_INVALID_DRIVER_CONFIGURATION
See Also:
Constant Field Values

ERROR_INVALID_DRIVER_MODULE

public static final int ERROR_INVALID_DRIVER_MODULE
See Also:
Constant Field Values

ERROR_INVALID_DRIVER_VERSION

public static final int ERROR_INVALID_DRIVER_VERSION
See Also:
Constant Field Values

ERROR_INVALID_HARDWARE_CONFIGURATION

public static final int ERROR_INVALID_HARDWARE_CONFIGURATION
See Also:
Constant Field Values

ERROR_INVALID_HARDWARE_VERSION

public static final int ERROR_INVALID_HARDWARE_VERSION
See Also:
Constant Field Values

ERROR_INVALID_INPUT_BUFFER

public static final int ERROR_INVALID_INPUT_BUFFER
See Also:
Constant Field Values

ERROR_INVALID_IOCTL_FUNCTION

public static final int ERROR_INVALID_IOCTL_FUNCTION
See Also:
Constant Field Values

ERROR_INVALID_IOCTL_PARAMETERS

public static final int ERROR_INVALID_IOCTL_PARAMETERS
See Also:
Constant Field Values

ERROR_INVALID_OUTPUT_BUFFER

public static final int ERROR_INVALID_OUTPUT_BUFFER
See Also:
Constant Field Values

ERROR_INVALID_PROTOCOL

public static final int ERROR_INVALID_PROTOCOL
See Also:
Constant Field Values

ERROR_INVALID_STACK_CONFIGURATION

public static final int ERROR_INVALID_STACK_CONFIGURATION
See Also:
Constant Field Values

ERROR_INVALID_STACK_ID

public static final int ERROR_INVALID_STACK_ID
See Also:
Constant Field Values

ERROR_INVALID_USER_ID

public static final int ERROR_INVALID_USER_ID
See Also:
Constant Field Values

ERROR_INVALID_WRITE_DATA_SIZE

public static final int ERROR_INVALID_WRITE_DATA_SIZE
See Also:
Constant Field Values

ERROR_MAX

public static final int ERROR_MAX
See Also:
Constant Field Values

ERROR_MIN

public static final int ERROR_MIN
See Also:
Constant Field Values

ERROR_NO_SYSTEM_BUFFER

public static final int ERROR_NO_SYSTEM_BUFFER
See Also:
Constant Field Values

ERROR_NOTHING_WAITING

public static final int ERROR_NOTHING_WAITING
See Also:
Constant Field Values

ERROR_OUT_OF_CONNECTIONS

public static final int ERROR_OUT_OF_CONNECTIONS
See Also:
Constant Field Values

ERROR_OUT_OF_MEMORY

public static final int ERROR_OUT_OF_MEMORY
See Also:
Constant Field Values

ERROR_PROTOCOL_BLOCKING

public static final int ERROR_PROTOCOL_BLOCKING
See Also:
Constant Field Values

ERROR_SERVER_ACCESS_NOT_ENABLED

public static final int ERROR_SERVER_ACCESS_NOT_ENABLED
See Also:
Constant Field Values

ERROR_SERVER_CONNECTED

public static final int ERROR_SERVER_CONNECTED
See Also:
Constant Field Values

ERROR_SERVER_NOT_CONNECTED

public static final int ERROR_SERVER_NOT_CONNECTED
See Also:
Constant Field Values

ERROR_SERVER_NOT_FOUND

public static final int ERROR_SERVER_NOT_FOUND
See Also:
Constant Field Values

ERROR_SERVICE_DATABASE_NOT_FOUND

public static final int ERROR_SERVICE_DATABASE_NOT_FOUND
See Also:
Constant Field Values

ERROR_SERVICE_NOT_AVAILABLE

public static final int ERROR_SERVICE_NOT_AVAILABLE
See Also:
Constant Field Values

ERROR_SERVICE_UNKNOWN

public static final int ERROR_SERVICE_UNKNOWN
See Also:
Constant Field Values

ERROR_SPECIAL_DATA_WAITING

public static final int ERROR_SPECIAL_DATA_WAITING
See Also:
Constant Field Values

ERROR_STACK_INITIALIZATION_FAILURE

public static final int ERROR_STACK_INITIALIZATION_FAILURE
See Also:
Constant Field Values

ERROR_TOO_MANY_CLIENTS

public static final int ERROR_TOO_MANY_CLIENTS
See Also:
Constant Field Values

ERROR_TRANSMISSION_BLOCKED

public static final int ERROR_TRANSMISSION_BLOCKED
See Also:
Constant Field Values

ERROR_UNKNOWN_PROTOCOL

public static final int ERROR_UNKNOWN_PROTOCOL
See Also:
Constant Field Values

ERROR_WRITE_QUEUE_FULL

public static final int ERROR_WRITE_QUEUE_FULL
See Also:
Constant Field Values

EVENT_ACCEPT

public static final int EVENT_ACCEPT
See Also:
Constant Field Values

EVENT_CANCEL

public static final int EVENT_CANCEL
See Also:
Constant Field Values

EVENT_CONFIRM

public static final int EVENT_CONFIRM
See Also:
Constant Field Values

EVENT_CONNECT

public static final int EVENT_CONNECT
See Also:
Constant Field Values

EVENT_CONNECT_ACCEPT

public static final int EVENT_CONNECT_ACCEPT
See Also:
Constant Field Values

EVENT_CONNECT_REFUSE

public static final int EVENT_CONNECT_REFUSE
See Also:
Constant Field Values

EVENT_CONNECT_REQUEST

public static final int EVENT_CONNECT_REQUEST
See Also:
Constant Field Values

EVENT_CONNECT_TIMEOUT

public static final int EVENT_CONNECT_TIMEOUT
See Also:
Constant Field Values

EVENT_CONNECTED

public static final int EVENT_CONNECTED
See Also:
Constant Field Values

EVENT_DATA_ABORTED_FRAME

public static final int EVENT_DATA_ABORTED_FRAME
See Also:
Constant Field Values

EVENT_DATA_CRC_ERROR

public static final int EVENT_DATA_CRC_ERROR
See Also:
Constant Field Values

EVENT_DATA_LENGTH_ERROR

public static final int EVENT_DATA_LENGTH_ERROR
See Also:
Constant Field Values

EVENT_DATA_OK

public static final int EVENT_DATA_OK
See Also:
Constant Field Values

EVENT_DATA_SPECIAL

public static final int EVENT_DATA_SPECIAL
See Also:
Constant Field Values

EVENT_DISCONNECT

public static final int EVENT_DISCONNECT
See Also:
Constant Field Values

EVENT_DISCONNECT_CONFIRMATION

public static final int EVENT_DISCONNECT_CONFIRMATION
See Also:
Constant Field Values

EVENT_DISCONNECT_REQUEST

public static final int EVENT_DISCONNECT_REQUEST
See Also:
Constant Field Values

EVENT_DISCONNECT_TIMEOUT

public static final int EVENT_DISCONNECT_TIMEOUT
See Also:
Constant Field Values

EVENT_DISCONNECTED

public static final int EVENT_DISCONNECTED
See Also:
Constant Field Values

EVENT_DISCONNECTING

public static final int EVENT_DISCONNECTING
See Also:
Constant Field Values

EVENT_IOCTL

public static final int EVENT_IOCTL
See Also:
Constant Field Values

EVENT_LISTEN

public static final int EVENT_LISTEN
See Also:
Constant Field Values

EVENT_MAX

public static final int EVENT_MAX
See Also:
Constant Field Values

EVENT_NONE

public static final int EVENT_NONE
See Also:
Constant Field Values

EVENT_PACKET_EVENT_MAX

public static final int EVENT_PACKET_EVENT_MAX
See Also:
Constant Field Values

EVENT_PROTOCOL_MESSAGE

public static final int EVENT_PROTOCOL_MESSAGE
See Also:
Constant Field Values

EVENT_REFUSE

public static final int EVENT_REFUSE
See Also:
Constant Field Values

EVENT_REOPEN

public static final int EVENT_REOPEN
See Also:
Constant Field Values

EVENT_RESET

public static final int EVENT_RESET
See Also:
Constant Field Values

EVENT_RESET_COMPLETED

public static final int EVENT_RESET_COMPLETED
See Also:
Constant Field Values

EVENT_RESET_TIMEOUT

public static final int EVENT_RESET_TIMEOUT
See Also:
Constant Field Values

EVENT_RESETTING

public static final int EVENT_RESETTING
See Also:
Constant Field Values

EVENT_USER_EVENT_MAX

public static final int EVENT_USER_EVENT_MAX
See Also:
Constant Field Values

EVENT_WRITE

public static final int EVENT_WRITE
See Also:
Constant Field Values

EVENT_XOFF

public static final int EVENT_XOFF
See Also:
Constant Field Values

EVENT_XOFF_REQUEST

public static final int EVENT_XOFF_REQUEST
See Also:
Constant Field Values

EVENT_XON

public static final int EVENT_XON
See Also:
Constant Field Values

EVENT_XON_REQUEST

public static final int EVENT_XON_REQUEST
See Also:
Constant Field Values

INVALID_CID

public static final int INVALID_CID
See Also:
Constant Field Values

INVALID_EVENT

public static final int INVALID_EVENT
See Also:
Constant Field Values

INVALID_MAJOR

public static final int INVALID_MAJOR
See Also:
Constant Field Values

INVALID_MINOR

public static final int INVALID_MINOR
See Also:
Constant Field Values

INVALID_PROTOCOL

public static final int INVALID_PROTOCOL
See Also:
Constant Field Values

INVALID_STATE

public static final int INVALID_STATE
See Also:
Constant Field Values

PROTOCOL_FRAME_RELAY_MAJOR_DEVICE

public static final int PROTOCOL_FRAME_RELAY_MAJOR_DEVICE
See Also:
Constant Field Values

PROTOCOL_FRAME_RELAY_SVC

public static final int PROTOCOL_FRAME_RELAY_SVC
See Also:
Constant Field Values

PROTOCOL_FRAME_RELAY_VC

public static final int PROTOCOL_FRAME_RELAY_VC
See Also:
Constant Field Values

PROTOCOL_HDLC_LAPB

public static final int PROTOCOL_HDLC_LAPB
See Also:
Constant Field Values

PROTOCOL_HDLC_NRM

public static final int PROTOCOL_HDLC_NRM
See Also:
Constant Field Values

PROTOCOL_LAPD_MAJOR_DEVICE

public static final int PROTOCOL_LAPD_MAJOR_DEVICE
See Also:
Constant Field Values

PROTOCOL_LAPD_TEI

public static final int PROTOCOL_LAPD_TEI
See Also:
Constant Field Values

PROTOCOL_MAX

public static final int PROTOCOL_MAX
See Also:
Constant Field Values

PROTOCOL_RESERVED_16

public static final int PROTOCOL_RESERVED_16
See Also:
Constant Field Values

PROTOCOL_RESERVED_17

public static final int PROTOCOL_RESERVED_17
See Also:
Constant Field Values

PROTOCOL_RESERVED_3

public static final int PROTOCOL_RESERVED_3
See Also:
Constant Field Values

PROTOCOL_RETURN

public static final int PROTOCOL_RETURN
See Also:
Constant Field Values

PROTOCOL_SDLC_HARDWARE

public static final int PROTOCOL_SDLC_HARDWARE
See Also:
Constant Field Values

PROTOCOL_SYSTEM_BUFFER_POOL

public static final int PROTOCOL_SYSTEM_BUFFER_POOL
See Also:
Constant Field Values

PROTOCOL_SYSTEM_STACK

public static final int PROTOCOL_SYSTEM_STACK
See Also:
Constant Field Values

PROTOCOL_X21_BIS

public static final int PROTOCOL_X21_BIS
See Also:
Constant Field Values

PROTOCOL_X25_MAJOR_DEVICE

public static final int PROTOCOL_X25_MAJOR_DEVICE
See Also:
Constant Field Values

PROTOCOL_X25_PVC

public static final int PROTOCOL_X25_PVC
See Also:
Constant Field Values

PROTOCOL_X25_SVC

public static final int PROTOCOL_X25_SVC
See Also:
Constant Field Values

STATE_CLOSED

public static final int STATE_CLOSED
See Also:
Constant Field Values

STATE_DATA_TRANSFER_XOFF

public static final int STATE_DATA_TRANSFER_XOFF
See Also:
Constant Field Values

STATE_DATA_TRANSFER_XON

public static final int STATE_DATA_TRANSFER_XON
See Also:
Constant Field Values

STATE_LISTENING

public static final int STATE_LISTENING
See Also:
Constant Field Values

STATE_MAX

public static final int STATE_MAX
See Also:
Constant Field Values

STATE_OPEN

public static final int STATE_OPEN
See Also:
Constant Field Values

STATE_RESETTING

public static final int STATE_RESETTING
See Also:
Constant Field Values

STATE_WAITING_FOR_LOCAL_ACCEPT

public static final int STATE_WAITING_FOR_LOCAL_ACCEPT
See Also:
Constant Field Values

STATE_WAITING_FOR_LOCAL_CONFIRMATION

public static final int STATE_WAITING_FOR_LOCAL_CONFIRMATION
See Also:
Constant Field Values

STATE_WAITING_FOR_REMOTE_ACCEPT

public static final int STATE_WAITING_FOR_REMOTE_ACCEPT
See Also:
Constant Field Values

STATE_WAITING_FOR_REMOTE_CONFIRMATION

public static final int STATE_WAITING_FOR_REMOTE_CONFIRMATION
See Also:
Constant Field Values
Constructor Detail

Laygo

public Laygo()
Method Detail

Attach

public static int Attach(java.lang.String service)

AttachProtocol

public static int AttachProtocol(int protocol,
                                 int major,
                                 int minor)

CheckDriverModuleInitialization

public static int CheckDriverModuleInitialization(int driver,
                                                  int board)

CheckHardwareInitialization

public static int CheckHardwareInitialization(int driver,
                                              int board)

ClearStatistics

public static int ClearStatistics(int cid)

Close

public static int Close(int cid)

ConfigureStack

public static int ConfigureStack(java.lang.String fileName)

ConnectAccept

public static int ConnectAccept(int cid,
                                byte[] buffer,
                                int size)

ConnectReject

public static int ConnectReject(int cid,
                                byte[] buffer,
                                int size)

ConnectRequest

public static int ConnectRequest(int cid,
                                 byte[] buffer,
                                 int size)

ConnectServer

public static int ConnectServer(int server)

ConnectServerIp

public static int ConnectServerIp(java.lang.String ipAddress)

ConnectServerLocal

public static int ConnectServerLocal()

Detach

public static int Detach(int cid)

DisableStack

public static int DisableStack()

DiscardData

public static int DiscardData(int cid)

DisconnectConfirm

public static int DisconnectConfirm(int cid,
                                    byte[] buffer,
                                    int size)

DisconnectRequest

public static int DisconnectRequest(int cid,
                                    byte[] buffer,
                                    int size)

DisconnectServer

public static int DisconnectServer()

DllDescription

public static java.lang.String DllDescription(int code)

DllErrorMessage

public static java.lang.String DllErrorMessage(int code)

DllName

public static java.lang.String DllName(int code)

DllTagToType

public static boolean DllTagToType(java.lang.String tag,
                                   Result type)

DllType

public static int DllType()

DownloadDriverModule

public static int DownloadDriverModule(int driver,
                                       int board,
                                       java.lang.String fileName)

EnableStack

public static int EnableStack()

ErrorMessage

public static java.lang.String ErrorMessage(int code)

Event

public static int Event(int cid,
                        byte[] buffer,
                        Result result)

EventMessage

public static java.lang.String EventMessage(int code)

FormatStatisticsTable

public static java.lang.String FormatStatisticsTable(byte[] buffer,
                                                     int protocol,
                                                     java.lang.String newline)

FormatStatusReport

public static java.lang.String FormatStatusReport(byte[] buffer,
                                                  java.lang.String newline)

GetBufferPoolStatistics

public static int GetBufferPoolStatistics(byte[] buffer,
                                          int size)

GetBufferPoolStatus

public static int GetBufferPoolStatus(byte[] buffer,
                                      int size)

GetConfiguration

public static int GetConfiguration(int cid,
                                   byte[] buffer,
                                   int size)

GetDefaultConfiguration

public static int GetDefaultConfiguration(int protocol,
                                          byte[] buffer,
                                          int size)

GetHardwareId

public static int GetHardwareId(int id)

GetStatistics

public static int GetStatistics(int cid,
                                byte[] buffer,
                                int size)

GetStatus

public static int GetStatus(int cid,
                            byte[] buffer,
                            int size)

HeartbeatServer

public static int HeartbeatServer()

Initialize

public static int Initialize(int size)

InitializeHardware

public static int InitializeHardware(int driver,
                                     int board)

InitializeServiceDatabase

public static int InitializeServiceDatabase(java.lang.String fileName)

InitializeStack

public static int InitializeStack()

Ioctl

public static int Ioctl(int cid,
                        int function,
                        byte[] inbuffer,
                        int count,
                        byte[] outbuffer,
                        Result result)

IsStackInitialized

public static int IsStackInitialized()

Listen

public static int Listen(int cid)

ListenCancel

public static int ListenCancel(int cid)

LoadConfiguration

public static int LoadConfiguration(java.lang.String fileName,
                                    int protocol,
                                    byte[] buffer,
                                    int size)

LoadLaygoDll

public static int LoadLaygoDll(int dll)

MaxBufferSize

public static int MaxBufferSize(int cid)

Open

public static int Open(java.lang.String service)

OpenProtocol

public static int OpenProtocol(int protocol,
                               int major,
                               int minor)

Poll

public static int Poll(int cid,
                       Result result)

Pop

public static int Pop(int cid)

Protocol

public static int Protocol(int cid)

ProtocolMessage

public static java.lang.String ProtocolMessage(int code)

Push

public static int Push(int cid1,
                       int cid2)

Read

public static int Read(int cid,
                       byte[] buffer,
                       int size)

ReadSpecial

public static int ReadSpecial(int cid,
                              byte[] buffer,
                              int size,
                              Result flags)

Reopen

public static int Reopen(int cid)

ResetRequest

public static int ResetRequest(int cid,
                               byte[] buffer,
                               int size)

RpcAttach

public static int RpcAttach(int server,
                            java.lang.String service)

RpcAttachProtocol

public static int RpcAttachProtocol(int server,
                                    int protocol,
                                    int major,
                                    int minor)

RpcConnectServer

public static int RpcConnectServer(int server)

RpcConnectServerIp

public static int RpcConnectServerIp(java.lang.String ipAddress)

RpcConnectServerLocal

public static int RpcConnectServerLocal()

RpcDisconnectServer

public static int RpcDisconnectServer(int server)

RpcGetHardwareId

public static int RpcGetHardwareId(int server,
                                   int driverId)

RpcHeartbeatServer

public static int RpcHeartbeatServer(int server)

RpcMaxBufferSize

public static int RpcMaxBufferSize(int server)

RpcOpen

public static int RpcOpen(int server,
                          java.lang.String service)

RpcOpenProtocol

public static int RpcOpenProtocol(int server,
                                  int protocol,
                                  int major,
                                  int minor)

RpcShutdownServer

public static int RpcShutdownServer(int server)

RpcValidateUserId

public static int RpcValidateUserId(int server,
                                    int id)

SaveConfiguration

public static int SaveConfiguration(java.lang.String fileName,
                                    int protocol,
                                    byte[] buffer,
                                    int size)

SetConfiguration

public static int SetConfiguration(int cid,
                                   byte[] buffer,
                                   int size)

SetDefaultConfiguration

public static int SetDefaultConfiguration(int protocol,
                                          byte[] buffer,
                                          int size)

ShutdownServer

public static int ShutdownServer(int server)

State

public static int State(int cid)

StateMessage

public static java.lang.String StateMessage(int code)

StatisticMessages

public static java.lang.String[] StatisticMessages(int code)

Uninitialize

public static int Uninitialize()

UninitializeServiceDatabase

public static int UninitializeServiceDatabase()

UninitializeStack

public static int UninitializeStack()

UnloadLaygoDll

public static int UnloadLaygoDll()

ValidateUserId

public static int ValidateUserId(int id)

Write

public static int Write(int cid,
                        byte[] buffer,
                        int size)

WriteSpecial

public static int WriteSpecial(int cid,
                               byte[] buffer,
                               int size,
                               int flags)

Xoff

public static int Xoff(int cid)

Xon

public static int Xon(int cid)