This method creates the server end of a peer-to-peer connection. The protocol, hostname, and port number are specified using the same "logical connection name" (LCN) as the client connection.
This connection is only used to accept connections from clients. All actual communication is done with the client connection returned by accept.
Example:
// create the server-side of a connection listening via TCP on port 8002 TipcConnServer srvConn = TipcSvc.createConnServer("tcp:_node:8002"); // accept a client connection TipcConnClient conn = srvConn.accept(); // get the next message sent by the client TipcMsg msg = conn.next(10.0);
the new connection interface
Exception Type | Condition |
---|---|
TipcBadArgumentException | If the LCN is invalid |
TipcAssertionException | If the LCN hostname is unknown |
TipcIOException | For lower-level errors |
TipcException | For all other errors |
TipcSvc Class | TipcSvc Members | TIBCO.SMARTSOCKETS Namespace | TipcConnServer | TipcConnClient