The TipcSrvConn* functions are used for communication between a client program (RTclient) and RTserver. These functions enable the publish-subscribe message delivery services of SmartSockets.
TipcSrvConnCloseCbCreate create a server close callback
T_CB TipcSrvConnCloseCbCreate(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_DESTROY_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnCloseCbLookup look up a server close callback
T_CB TipcSrvConnCloseCbLookup(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_DESTROY_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnDefaultCbCreate create a default callback in the connection
T_CB TipcSrvConnDefaultCbCreate(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_CONN_DEFAULT_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnDefaultCbLookup look up a default callback in the connection
T_CB TipcSrvConnDefaultCbLookup(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_CONN_DEFAULT_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnErrorCbCreate create an error callback in the connection
T_CB TipcSrvConnErrorCbCreate(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_CONN_ERROR_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnErrorCbLookup look up an error callback in the connection
T_CB TipcSrvConnErrorCbLookup(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_CONN_ERROR_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnGetCurrentConnectedLcn get the logical connection name of the RTserver to which this RTclient is connected
TipcSrvConnOpenCbCreate create a server open callback
T_CB TipcSrvConnOpenCbCreate(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_CREATE_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnOpenCbLookup look up a server open callback
T_CB TipcSrvConnOpenCbLookup(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_CREATE_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnProcessCbCreate create a process callback in the connection
T_CB TipcSrvConnProcessCbCreate(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_PROCESS_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnProcessCbLookup look up a process callback in the connection
T_CB TipcSrvConnProcessCbLookup(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_PROCESS_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnQueueCbCreate create a queue callback in the connection
T_CB TipcSrvConnQueueCbCreate(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_QUEUE_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnQueueCbLookup look up a queue callback in the connection
T_CB TipcSrvConnQueueCbLookup(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_QUEUE_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnReadCbCreate create a read callback in the connection
T_CB TipcSrvConnReadCbCreate(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_READ_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnReadCbLookup look up a read callback in the connection
T_CB TipcSrvConnReadCbLookup(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_READ_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnSubjectCbCreate create a subject callback
T_CB TipcSrvConnSubjectCbCreate(srv
,subject
,mt
,func
,arg
) T_IPC_SRVsrv
; T_STRsubject
; T_IPC_MTmt
; T_IPC_SRV_SUBJECT_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnSubjectCbDestroyAll destroy all subject callbacks
TipcSrvConnSubjectCbLookup lookup a subject callback
T_CB TipcSrvConnSubjectCbLookup(srv
,subject
,mt
,func
,arg
) T_IPC_SRVsrv
; T_STRsubject
; T_IPC_MTmt
; T_IPC_SRV_SUBJECT_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnSubjectDefaultCbCreate create a default subject callback
T_CB TipcSrvConnSubjectDefaultCbCreate(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_SUBJECT_CB_FUNC func; T_CB_ARG arg;
TipcSrvConnSubjectDefaultCbLookup look up a default subject callback
T_CB TipcSrvConnSubjectDefaultCbLookup(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_SUBJECT_CB_FUNC func; T_CB_ARG arg;
TipcSrvConnWriteCbCreate create a write callback in the connection
T_CB TipcSrvConnWriteCbCreate(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_WRITE_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvConnWriteCbLookup look up a write callback in the connection
T_CB TipcSrvConnWriteCbLookup(srv
,mt
,func
,arg
) T_IPC_SRVsrv
; T_IPC_MTmt
; T_IPC_CONN_WRITE_CB_FUNCfunc
; T_CB_ARGarg
;
The TipcSrvConn*Subject* functions are used to work with subjects.
TipcSrvConnStdSubjectSetSubscribe start or stop subscribing to all standard subjects
T_BOOL TipcSrvConnStdSubjectSetSubscribe(srv
,subscribe_status
) T_IPC_SRVsrv
; T_BOOLsubscribe_status
;
TipcSrvConnSubjectGetSubscribe determine whether an RTclient is subscribing to a subject
T_BOOL TipcSrvConnSubjectGetSubscribe(srv
,subject
,subscribe_status_return
) T_IPC_SRVsrv
; T_STRsubject
; T_BOOL *subscribe_status_return
;
TipcSrvConnSubjectGetSubscribeLb determine whether an RTclient is subscribing to a subject, including load balancing information
T_BOOL TipcSrvConnSubjectGetSubscribeLb(srv
,subject
,subscribe_status_return
,lb_status_return
) T_IPC_SRVsrv
; T_STRsubject
; T_BOOL *subscribe_status_return
; T_BOOL *lb_status_return
;
TipcSrvConnSubjectGmdInit initialize GMD accounting in RTserver for a subject to which messages will be published
TipcSrvConnSubjectLbInit initialize load balancing accounting in RTserver for a subject to which messages will be published
TipcSrvConnSubjectSetSubscribe start or stop subscribing to a subject
T_BOOL TipcSrvConnSubjectSetSubscribe(srv
,subject
,subscribe_status
) T_IPC_SRVsrv
; T_STRsubject
; T_BOOLsubscribe_status
;
TipcSrvConnSubjectSetSubscribeEx start or stop subscribing to a subject using extended options
T_BOOL TipcSrvConnSubjectSetSubscribeEx(srv
,subj_name
,status
,type
,flags
,type_specific_struct
) T_IPC_SRVsrv
; T_STRsubj_name
; T_BOOLstatus
; T_INT4type
; T_INT4flags
; T_PTRtype_specific_struct
;
TipcSrvConnSubjectSetSubscribeLb start or stop subscribing to a subject, with or without load balancing
T_BOOL TipcSrvConnSubjectSetSubscribeLb(srv
,subject
,subscribe_status
,lb_status
) T_IPC_SRVsrv
; T_STRsubject
; T_BOOLsubscribe_status
; T_BOOLlb_status
;
TipcSrvConnSubjectTraverseSubscribe traverse the subjects that the RTclient is subscribing to
T_PTR TipcSrvConnSubjectTraverseSubscribe(srv
,func
,arg
) T_IPC_SRVsrv
; T_IPC_SRV_SUBJECT_TRAV_FUNCfunc
; T_PTRarg
;
The TipcSrvConnGmd* functions are used to work with the guaranteed message delivery services of SmartSockets when using the publish-subscribe communication mode.
TipcSrvConnGmdFileCreate create a GMD area on the connection
TipcSrvConnGmdFileDelete delete GMD files for the connection
TipcSrvConnGmdMsgDelete delete a message from the GMD area after a GMD failure
TipcSrvConnGmdMsgServerDelete delete a message in RTserver after a GMD failure
TipcSrvConnGmdMsgStatus poll RTserver for GMD status of a message
These functions do not fit with any of the other categories. The miscellaneous functions are used for tasks such as creating a connection to RTserver, destroying a connection to RTserver, checking if an RTserver is running, checking if an RTserver is still alive, and stopping an RTserver.
TipcSrvConnCheck check if data can be read from or written to connection
T_BOOL TipcSrvConnCheck(srv
,check_mode
,timeout
) T_IPC_SRVsrv
; T_IO_CHECK_MODEcheck_mode
; T_REAL8timeout
;
TipcSrvConnClose close a physical connection to RTserver
TipcSrvConnCreate create an RTclient connection handle to an RTserver
T_IPC_SRV TipcSrvConnCreate(unique_subject
,project
,server_names
,default_subject_prefix
) T_STRunique_subject
; T_STRproject
; T_STRserver_names
; T_STRdefault_subject_prefix
;
TipcSrvConnCreateNamed create a named RTclient connection handle to an RTserver
TipcSrvConnDestroy free resources associated with the RTclient/RTserver connection handle
TipcSrvConnKeepAlive check if the connection to RTserver is still alive
TipcSrvConnLock acquire exclusive access to the connection
TipcSrvConnOpen open a connection to RTserver
TipcSrvConnPrint print all information about the connection in a portable, reproducible format
TipcSrvConnUnlock release exclusive access to the connection
The TipcSrvConnGet*, TipcSrv*Get*, and TipcSrvConnSubjectGet* functions are used to retrieve the properties of a connection to an RTserver.
TipcSrvBufferGetReadSize get the total number of bytes in a connection’s read buffer to an RTserver
TipcSrvBufferGetWriteSize get the total number of bytes in a connection’s write buffer to an RTserver
TipcSrvConnBufferGetReadSize get the total number of bytes in a connection’s read buffer to an RTserver
TipcSrvConnBufferGetWriteSize get the total number of bytes in a connection’s write buffer to an RTserver
T_BOOL TipcSrvConnBufferGetWriteSize(conn
,write_size_return
) T_IPC_SRVsrv
; T_INT4 *write_size_return
;
TipcSrvConnGetAutoFlushSize determine the automatic flush size of the connection
T_BOOL TipcSrvConnGetAutoFlushSize(srv
,auto_flush_size_return
) T_IPC_SRVsrv
; T_INT4 *auto_flush_size_return
;
TipcSrvConnGetConnStatus determine the status of the connection
T_BOOL TipcSrvConnGetConnStatus(srv
,status_return
) T_IPC_SRVsrv
; T_IPC_SRV_CONN_STATUS *status_return
;
TipcSrvConnGetGmdDirName get the GMD area sub-directory name of the connection to RTserver
T_BOOL TipcSrvConnGetGmdDirName(srv
,gmd_dir_name_return
) T_IPC_SRVsrv
; T_STR *gmd_dir_name_return
;
TipcSrvConnGetGmdMaxSize determine the GMD area maximum size of the connection
T_BOOL TipcSrvConnGetGmdMaxSize(srv
,gmd_max_size_return
) T_IPC_SRVsrv
; T_UINT4 *gmd_max_size_return
;
TipcSrvConnGetGmdNumPending determine the number of outgoing GMD messages still pending on the connection
T_BOOL TipcSrvConnGetGmdNumPending(srv
,gmd_num_pending_return
) T_IPC_SRVsrv
; T_INT4 *gmd_num_pending_return
;
TipcSrvConnGetNumQueued get number of queued messages from the connection
TipcSrvConnGetProject get the project of the connection to RTserver
TipcSrvConnGetServerNamesList get the server names of the connection to RTserver
T_BOOL TipcSrvConnGetServerNamesList(srv
,server_names_list_return
) T_IPC_SRVsrv
; T_STR_LIST *server_names_list_return
;
TipcSrvConnGetSocket determine the socket of the connection
TipcSrvConnGetTimeout get a timeout property from the connection
T_BOOL TipcSrvConnGetTimeout(srv
,timeout
,value_return
) T_IPC_SRVsrv
; T_IPC_TIMEOUTtimeout
; T_REAL8 *value_return
;
TipcSrvConnGetXtSource get source for XtAppAddInput from the connection
TipcSrvConnSubjectGetDefaultPrefix get the default subject prefix of the connection to RTserver
T_BOOL TipcSrvConnSubjectGetDefaultPrefix(srv
,default_prefix_return
) T_IPC_SRVsrv
; T_STR *default_prefix_return
;
TipcSrvConnSubjectGetUnique get the unique subject of the connection to RTserver
T_BOOL TipcSrvConnGetUniqueSubject(srv
,unique_subject_return
) T_IPC_SRVsrv
; T_STR *unique_subject_return
;
TipcSrvConnTrafficGetBytesRecv8 get the total number of bytes received on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetBytesRecv8(srv
,bytes_recv_return
) T_IPC_SRVsrv
; T_INT8 *bytes_recv_return
;
TipcSrvConnTrafficGetBytesSent8 get the total number of bytes sent on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetBytesSent8(srv
,bytes_sent_return
) T_IPC_SRVsrv
; T_INT8 *bytes_sent_return
;
TipcSrvConnTrafficGetMsgsRecv8 get the total number of messages received on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetMsgsRecv8(srv
,msgs_recv_return
) T_IPC_SRVsrv
; T_INT8 *msgs_recv_return
;
TipcSrvConnTrafficGetMsgsSent8 get the total number of messages sent on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetMsgsSent8(srv
,msgs_sent_return
) T_IPC_SRVsrv
; T_INT8 *msgs_sent_return
;
![]() |
The previous functions supersede their older counterparts. Do not use the following older functions; we have retained them only for backward source compatibility.
|
TipcSrvConnTrafficGetBytesRecv get the total number of bytes received on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetBytesRecv(srv
,bytes_recv_return
) T_IPC_SRVsrv
; T_INT4 *bytes_recv_return
;
TipcSrvConnTrafficGetBytesSent get the total number of bytes sent on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetBytesSent(srv
,bytes_sent_return
) T_IPC_SRVsrv
; T_INT4 *bytes_sent_return
;
TipcSrvConnTrafficGetMsgsRecv get the total number of messages received on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetMsgsRecv(srv
,msgs_recv_return
) T_IPC_SRVsrv
; T_INT4 *msgs_recv_return
;
TipcSrvConnTrafficGetMsgsSent get the total number of messages sent on a connection to an RTserver
T_BOOL TipcSrvConnTrafficGetMsgsSent(srv
,msgs_sent_return
) T_IPC_SRVsrv
; T_INT4 *msgs_sent_return
;
TipcSrvTrafficGetBytesRecv8 get the total number of bytes received on a connection to an RTserver
TipcSrvTrafficGetBytesSent8 get the total number of bytes sent on a connection to an RTserver
TipcSrvTrafficGetMsgsRecv8 get the total number of messages received on a connection to an RTserver
TipcSrvTrafficGetMsgsSent8 get the total number of messages sent on a connection to an RTserver
![]() |
The previous functions supersede their older counterparts. Do not use the following older functions; we have retained them only for backward source compatibility.
|
TipcSrvTrafficGetBytesRecv get the total number of bytes received on a connection to an RTserver
TipcSrvTrafficGetBytesSent get the total number of bytes sent on a connection to an RTserver
TipcSrvTrafficGetMsgsRecv get the total number of messages received on a connection to an RTserver
TipcSrvTrafficGetMsgsSent get the total number of messages sent on a connection to an RTserver
The TipcSrvConnSet* and TipcSrvConnSubjectSet* functions are used to set the values of the properties of a connection to RTserver.
TipcSrvConnSetAutoFlushSize set the automatic flush size of the connection
TipcSrvConnSetGmdDirName set the GMD area sub-directory name of the connection to RTserver
TipcSrvConnSetGmdMaxSize set the GMD area maximum size of the connection
TipcSrvConnSetProject set the project of the connection to RTserver
TipcSrvConnSetServerNames set the server names of a connection to RTserver
TipcSrvConnSetServerNamesList set the server names of the connection to RTserver in a linked list of strings
T_BOOL TipcSrvConnSetServerNamesList(srv
,server_names_list
) T_IPC_SRVsrv
; T_STR_LISTserver_names_list
;
TipcSrvConnSetTimeout set a timeout property of the connection
T_BOOL TipcSrvConnSetTimeout(srv
,timeout
,value
) T_IPC_SRVsrv
; T_IPC_TIMEOUTtimeout
; T_REAL8value
;
TipcSrvConnSetUsernamePassword set the basic credentials of the connection to RTserver
T_BOOL TipcSrvConnSetUsernamePassword(srv
,username
,password
) T_IPC_SRVsrv
; T_STRusername
; T_STRpassword
;
TipcSrvConnSubjectSetDefaultPrefix set the connection’s default subject prefix
TipcSrvConnSubjectSetUnique set the unique subject of the connection to RTserver
These TipcSrvConnGet* functions are used to retrieve the values of the properties of a peer connection to RTserver.
TipcSrvConnGetArch determine the architecture name of the connected RTserver
TipcSrvConnGetNode determine the node name of the connected RTserver
TipcSrvConnGetPid determine the process ID of the connected RTserver
TipcSrvConnGetUniqueSubject get the unique subject for the peer connection
TipcSrvConnGetUser determine the user name of the connected RTserver
These functions are used to read, process, or search for messages arriving from RTserver.
TipcSrvConnMainLoop read and process messages on the connection
TipcSrvConnMsgNext retrieve the next message from the connection
TipcSrvConnMsgProcess process a message in the connection to RTserver
TipcSrvConnMsgSearch search the message queue of the connection for a specific message
T_IPC_MSG TipcSrvConnMsgSearch(srv
,timeout
,func
,arg
) T_IPC_SRVsrv
; T_REAL8timeout
; T_IPC_CONN_MSG_SEARCH_FUNCfunc
; T_PTRarg
;
TipcSrvConnMsgSearchType search the message queue of a connection for a message with a specific type
TipcSrvConnRead read all available data from the connection and queue messages in priority order
These functions are used to publish messages using RTserver.
TipcSrvConnFlush flush buffered outgoing messages on the connection
TipcSrvConnMsgInsert insert a message into the queue of the connection
TipcSrvConnMsgSend send a message through the connection
T_BOOL TipcSrvConnMsgSend(srv
,msg
,check_server_msg_send
) T_IPC_SRVsrv
; T_IPC_MSGmsg
; T_BOOLcheck_server_msg_send
;
TipcSrvConnMsgSendRpc make a remote procedure call (RPC) with messages on the connection
T_IPC_MSG TipcSrvConnMsgSendRpc(srv
,call_msg
,timeout
) T_IPC_SRVsrv
; T_IPC_MSGcall_msg
; T_REAL8timeout
;
TipcSrvConnMsgWrite construct a message and send it through the connection
T_BOOL TipcSrvConnMsgWrite(srv
,dest
,mt
,check_server_msg_send
, ...) T_IPC_SRVsrv
; T_STRdest
; T_IPC_MTmt
; T_BOOLcheck_server_msg_send
;
TipcSrvConnMsgWriteVa construct a message and send it through the connection (va_list
version)
T_BOOL TipcSrvConnMsgWriteVa(srv
,dest
,mt
,check_server_msg_send
,var_arg_list
) T_IPC_SRVsrv
; T_STRdest
; T_IPC_MTmt
; T_BOOLcheck_server_msg_send
; va_listvar_arg_list
;
TIBCO SmartSockets™ API Quick Reference Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |