TcpIpConnection Class

The TcpIpConnection class implements the interface defined by the Connection class specifically for the Transmission Control Protocol / Internet Protocol (TCP/IP) API. The TcpIpConnection class supports both synchronous and asynchronous operations. Asynchronous methods have a receiver object and a message (method name) specified as parameters. When the method completes, the specified (callback) method of the object is called. The callback method must match the signature required by the calling asynchronous method.

Only one synchronous operation can be performed at one time. Only one synchronous or asynchronous read operation can be performed at one time on a connection. Many asynchronous write operations can be performed at the same time on one connection.

As you can create a TcpIpConnection object as a shared transient object, you can pass it to another JADE process on the same JADE node, if required. Shared transient TCP/IP connection objects enable you to create a communicator application that passes on messages to worker threads and to share connections between processes so that a new connection can be passed on to a worker application. Ensure that you are in shared transient transaction state before you create or delete a TcpIpConnection object, by setting the port property or the Connection class name property.

The Connection class name property for a TcpIpConnection object may be set to a valid IP address.

For details about the constants, properties, and methods defined in the TcpIpConnection class, see "TcpIpConnection Constants", "TcpIpConnection Properties", and "TcpIpConnection Methods", in the following subsections.

Connection

JadeInternetTCPIPConnection