#include <tconn.h>
Inheritance diagram for SmartSockets::TipcConn::
Public Methods | |
virtual | ~TipcConn () throw () |
Destructor. | |
operator T_IPC_CONN () const throw () | |
operator. | |
virtual bool | check (T_IO_CHECK_MODE check_mode, real8 timeout) throw (TipcException) |
virtual void | flush () throw (TipcException) |
virtual sock | getSocket () const throw (TipcException) |
virtual int4 | getNumQueued () const throw (TipcException) |
virtual sock | getXtSource () const throw (TipcException) |
virtual void | keepAlive () throw (TipcException) |
virtual bool | mainLoop (real8 timeout=T_TIMEOUT_FOREVER) throw (TipcException) |
virtual void | insert (TipcMsg &msg, int4 pos) throw (TipcException) |
virtual void | process (TipcMsg &msg) throw (TipcException) |
void | read (real8 timeout) throw (TipcException) |
virtual void | next (TipcMsg &msg, real8 timeout) throw (TipcException) |
virtual bool | nextEx (TipcMsg &msg, real8 timeout) throw (TipcException) |
virtual void | search (TipcMsg &msg, TipcConnSearchSelector *selObj, real8 timeout) throw (TipcException) |
virtual void | searchType (TipcMsg &msg, TipcMt &mt, real8 timeout) throw (TipcException) |
virtual void | send (const TipcMsg &msg, bool rtserver_check=FALSE) throw (TipcException) |
virtual void | sendRpc (TipcMsg &reply_msg, const TipcMsg &call_msg, real8 timeout) throw (TipcException) |
void | write (TipcMt &mt,...) throw (TipcException) |
void | writeVa (TipcMt &mt, va_list var_arg_list) throw (TipcException) |
virtual void | print (T_OUT_FUNC func=(T_OUT_FUNC) TutOut) const throw (TipcException) |
virtual CallBack< MessageQueueCallBack > * | queueCbCreate (const TipcMt &mt, MessageQueueCallBack *, void *arg=NULL) throw (TipcException) |
virtual CallBack< ErrorCallBack > * | errorCbCreate (ErrorCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< MessageCallBack > * | encryptCbCreate (const TipcMt &mt, MessageCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< MessageCallBack > * | decryptCbCreate (const TipcMt &mt, MessageCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< MessageCallBack > * | defaultCbCreate (MessageCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< MessageCallBack > * | processCbCreate (const TipcMt &mt, MessageCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< MessageCallBack > * | readCbCreate (const TipcMt &mt, MessageCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< MessageCallBack > * | writeCbCreate (const TipcMt &mt, MessageCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< EncodeCallBack > * | encodeCbCreate (EncodeCallBack *implementor, void *arg=NULL) throw (TipcException) |
virtual CallBack< DecodeCallBack > * | decodeCbCreate (DecodeCallBack *impleemntor, void *arg=NULL) throw (TipcException) |
virtual const char * | getPeerUniqueSubject () const throw (TipcException) |
virtual const char * | getNode () const throw (TipcException) |
virtual const char * | getUser () const throw (TipcException) |
virtual int4 | getPid () const throw (TipcException) |
virtual const char * | getArch () const throw (TipcException) |
virtual void | gmdFileCreate () throw (TipcException) |
virtual void | gmdFileDelete () throw (TipcException) |
virtual void | gmdResend () throw (TipcException) |
virtual void | gmdMsgDelete (TipcMsg &msg) throw (TipcException) |
virtual void | gmdMsgResend (TipcMsg &msg) throw (TipcException) |
const char * | getGmdDir () const throw (TipcException) |
virtual int4 | getGmdNumPending () const throw (TipcException) |
virtual int4 | trafficGetBytesRecv () const throw (TipcException) |
virtual int8 | trafficGetBytesRecv8 () const throw (TipcException) |
virtual int4 | trafficGetBytesSent () const throw (TipcException) |
virtual int8 | trafficGetBytesSent8 () const throw (TipcException) |
virtual int4 | trafficGetMsgsRecv () const throw (TipcException) |
virtual int8 | trafficGetMsgsRecv8 () const throw (TipcException) |
virtual int4 | trafficGetMsgsSent () const throw (TipcException) |
virtual int8 | trafficGetMsgsSent8 () const throw (TipcException) |
virtual int4 | bufferGetReadSize () const throw (TipcException) |
virtual int4 | bufferGetWriteSize () const throw (TipcException) |
TipcConn () throw (TipcException) | |
TipcConn (T_IPC_CONN connection, bool destroy_flag=true) throw (TipcException) | |
virtual int4 | getAutoFlushSize () const throw (TipcException) |
virtual void | setAutoFlushSize (int4 auto_flush_size) throw (TipcException) |
virtual long | getBlockMode () const throw (TipcException) |
virtual void | setBlockMode (bool block_mode) throw (TipcException) |
virtual real8 | getTimeout (T_IPC_TIMEOUT timeout) const throw (TipcException) |
virtual void | setTimeout (T_IPC_TIMEOUT timeout, real8 value) throw (TipcException) |
virtual void | lock () throw (TipcException) |
virtual void | unlock () throw (TipcException) |
virtual uint4 | getGmdMaxSize () const throw (TipcException) |
virtual void | setGmdMaxSize (uint4 gmd_max_size) throw (TipcException) |
Protected Methods | |
TipcConn (bool do_nothing) | |
Static Protected Methods | |
void T_ENTRY1 | errorCbDelegator (T_IPC_CONN connection, T_IPC_CONN_ERROR_CB_DATA data, T_CB_ARG arg) |
void T_ENTRY1 | queueCbDelegator (T_IPC_CONN connection, T_IPC_CONN_QUEUE_CB_DATA data, T_CB_ARG arg) |
void T_ENTRY1 | messageCbDelegator (T_IPC_CONN connection, T_IPC_CONN_MSG_CB_DATA data, T_CB_ARG arg) |
void T_ENTRY1 | readCbDelegator (T_IPC_CONN connection, T_IPC_CONN_READ_CB_DATA data, T_CB_ARG arg) |
void T_ENTRY1 | encodeCbDelegator (T_IPC_CONN connection, T_IPC_CONN_ENCODE_CB_DATA data, T_CB_ARG arg) |
void T_ENTRY1 | decodeCbDelegator (T_IPC_CONN connection, T_IPC_CONN_DECODE_CB_DATA data, T_CB_ARG arg) |
Protected Attributes | |
T_IPC_CONN | _connection |
C style T_IPC_CONN handle to the connection. | |
bool | _destroy_flag |
The TipcConn class calls the C API function TipcConnCreate at construction. It manages the resulting T_IPC_CONN object internally.
|
Constructor
|
|
Constructors
|
|
Gets the total number of bytes in the connection's read buffer.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of bytes in the connection's write buffer.
Reimplemented in SmartSockets::TipcSrv. |
|
Check if data can be read from or written to connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates a decode callback.
|
|
Delegator method for decode callbacks. Will be called when the callback is triggered and will in turn call the callback's handler method.
|
|
Creates a decryption callback.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates a default callback.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates an encode callback.
|
|
Delegator method for encode callbacks. Will be called when the callback is triggered and will in turn call the callback's handler method.
|
|
Creates an encryption callback.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates an error callback.
Reimplemented in SmartSockets::TipcSrv. |
|
Delegator method for error callbacks. Will be called when the callback is triggered and will in turn call the callback's handler method.
|
|
Flush buffered outgoing messages on the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Determine the architecture name of the connected server.
Reimplemented in SmartSockets::TipcSrv. |
|
Accessor methods; get and sets thhe auto_flush_size of a connection to the RTserver
Reimplemented in SmartSockets::TipcSrv. |
|
Get/Set the block mode of a connection.
|
|
Get name of directory where files are written for guaranteed message delivery.
|
|
Get/Set the GMD area maximum size of the connection to RTserver.
Reimplemented in SmartSockets::TipcSrv. |
|
Determine the number of outgoing GMD messages still pending on the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Determine the node name of the connected server.
Reimplemented in SmartSockets::TipcSrv. |
|
Get number of queued messages from the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Determine the unique subject of the connected server.
Reimplemented in SmartSockets::TipcSrv. |
|
Determine the process ID of the connected server.
Reimplemented in SmartSockets::TipcSrv. |
|
Determine the socket of the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Accessor methods; Get/Set a timeout property from the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Determine the user name of the connected server.
Reimplemented in SmartSockets::TipcSrv. |
|
Get source for XtAppAddInput from the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Create guaranteed message delivery area on the connection to RTserver.
Reimplemented in SmartSockets::TipcSrv. |
|
Delete guaranteed message delivery files for the connection to RTserver.
Reimplemented in SmartSockets::TipcSrv. |
|
Delete a message from the GMD area after a GMD failure on the connection toRTserver.
Reimplemented in SmartSockets::TipcSrv. |
|
Resend a message after a GMD failure on the connection to RTserver.
|
|
Resend all guaranteed messages after a delivery failure on the connection toRTserver.
Reimplemented in SmartSockets::TipcSrv. |
|
Insert a message into the queue of the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Check if the server connection is still alive.
Reimplemented in SmartSockets::TipcSrv. |
|
Acquire/Release exclusive access to the connection
Reimplemented in SmartSockets::TipcSrv. |
|
Read and process messages on the connection to the RTserver.
Reimplemented in SmartSockets::TipcSrv. |
|
Delegator method for message callbacks. Will be called when the callback is triggered and will in turn call the callback's handler method.
|
|
Retrieve the next message from the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Retrieve the next message from the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Print information about the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Process a message in the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates a process callback.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates a message queue callback.
Reimplemented in SmartSockets::TipcSrv. |
|
Delegator method for message queue callbacks. Will be called when the callback is triggered and will in turn call the callback's handler method.
|
|
Read all available data from the connection to RTserver and queue messages in priority order.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates a read callback.
Reimplemented in SmartSockets::TipcSrv. |
|
Delegator method for read callbacks. Will be called when the callback is triggered and will in turn call the callback's handler method.
|
|
Search the message queue of the connection for a specific message
Reimplemented in SmartSockets::TipcSrv. |
|
Search the message queue of the connection for a message with a specific type.
Reimplemented in SmartSockets::TipcSrv. |
|
Send a message through the connection. For connections, the rtserver_check flag is defaulted and ignored. The TipcSrv derived class version of this virtual fn will use it.
Reimplemented in SmartSockets::TipcSrv. |
|
Make a remote procedure call (RPC) with messages on the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of bytes received on the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of bytes received on the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of bytes written to the write buffer on a connection. This number usually is the same as the total number of bytes actually sent on the connection, but sometimes the retrieved number is larger than the number of bytes sent when the write buffer is not frequently flushed.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of bytes written to the write buffer on a connection. This number usually is the same as the total number of bytes actually sent on the connection, but sometimes the retrieved number is larger than the number of bytes sent when the write buffer is not frequently flushed.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of messages received on the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of messages received on the connection.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of messages written to the write buffer on a connection. This number usually is the same as the total number of messages actually sent on the connection, but sometimes the retrieved number is larger than the number of messages sent when the write buffer is not frequently flushed.
Reimplemented in SmartSockets::TipcSrv. |
|
Gets the total number of messages written to the write buffer on a connection. This number usually is the same as the total number of messages actually sent on the connection, but sometimes the retrieved number is larger than the number of messages sent when the write buffer is not frequently flushed.
Reimplemented in SmartSockets::TipcSrv. |
|
Creates a write callback.
Reimplemented in SmartSockets::TipcSrv. |