Connecting to Network Devices Using TCP/IP

You can connect to external (JADE or non-JADE) systems from JADE by using Transmission Control Protocol / Internet Protocol (TCP/IP) as the transport provider.

By specifying the host connection details to TCP/IP, the transfer of information between JADE and an external system is achieved simply by applying methods that are implemented by the TcpIpConnection class.

The TcpIpConnection class also provides the JadeInternetTCPIPConnection subclass, which implements the interface defined by the TcpIpConnection class specifically for the Internet TCP/IP API. The methods defined in the JadeInternetTCPIPConnection class are listed in the following table.

Method Description
openPipeCallback Initiates an asynchronous read of the opened TCP/IP connection
readBinary Reads binary data from the Internet connection and returns when the specified number of bytes has been read or when a block of data is received
readDataWithLength Reads data from the Internet TCP/IP connection and returns when the specified length of data is read
readPipeCallback Performs Web session evaluation processing
sendReply Sends the formatted HyperText Markup Language (HTML) page to the opened Internet TCP/IP connection
writeBinary Writes binary data to the Internet TCP/IP connection and returns when the operation is complete