TipcConnClient


Name

TipcConnClient — user class for a client connection

Synopsis

TipcConnClient conn(logical_conn_name); 

Inheritance

Description

The TipcConnClient class calls the C API function TipcConnClientCreate at construction, passing the resulting T_IPC_CONN handle up to the TipcConn base class, where it is managed.

Caution

None

See Also

Tobj; see the TIBCO SmartSockets Application Programming Interface for information on TipcConnCreate and TipcConnClientCreate

Construction/Destruction

TipcConnClient::TipcConnClient

Syntax:
TipcConnClient(T_STR logical_conn_name); 
Remarks:
Create a TipcConnClient object with logical_conn_name.
C API:
TipcConnCreateClient

Example

This code fragment creates a client connection, then sends an INFO message to the other side:

TipcConn *conn = new TipcConnClient("tcp:_node:5252"); 
if (!conn) { 
  // error 
} 
TipcMsg msg(T_MT_INFO); 
msg.AppendStr("hiya"); 
conn->Send(msg); 

TIBCO SmartSockets™ cxxipc Class Library
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com