The TipcSrv* functions are used for communication between a client program (RTclient) and RTserver. These functions enable the publish-subscribe message delivery services of SmartSockets.
TipcCbSrvError callback to handle errors on the connection to RTserver
TipcCbSrvProcessControl callback to process CONTROL messages from RTserver
void TipcCbSrvProcessControl(conn
,data
,arg
) T_IPC_CONNconn
; T_IPC_CONN_PROCESS_CB_DATAdata
; T_CB_ARGarg
;
TipcCbSrvProcessGmdFailure callback on connection to RTserver to process GMD_FAILURE messages when GMD fails
void TipcCbSrvProcessGmdFailure(conn
,data
,arg
) T_IPC_CONNconn
; T_IPC_CONN_PROCESS_CB_DATAdata
; T_CB_ARGarg
;
TipcSrvCreateCbCreate create a server create callback
TipcSrvCreateCbLookup look up a server create callback
TipcSrvDefaultCbCreate create a default callback in the connection to RTserver
TipcSrvDefaultCbLookup look up a default callback in the connection to RTserver
TipcSrvDestroyCbCreate create a server destroy callback
TipcSrvDestroyCbLookup look up a server destroy callback
TipcSrvErrorCbCreate create an error callback in the connection to RTserver
TipcSrvErrorCbLookup look up an error callback in the connection to RTserver
TipcSrvGetCurrentConnectedLcn get the logical connection name of the RTserver to which this RTclient is connected
TipcSrvProcessCbCreate create a process callback in the connection to RTserver
T_CB TipcSrvProcessCbCreate(mt
,func
,arg
) T_IPC_MTmt
; T_IPC_CONN_PROCESS_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvProcessCbLookup look up a process callback in the connection to RTserver
T_CB TipcSrvProcessCbLookup(mt
,func
,arg
) T_IPC_MTmt
; T_IPC_CONN_PROCESS_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvQueueCbCreate create a queue callback in the connection to RTserver
TipcSrvQueueCbLookup look up a queue callback in the connection to RTserver
TipcSrvReadCbCreate create a read callback in the connection to RTserver
TipcSrvReadCbLookup look up a read callback in the connection to RTserver
TipcSrvSubjectCbCreate create a subject callback
T_CB TipcSrvSubjectCbCreate(subject
,mt
,func
,arg
) T_STRsubject
; T_IPC_MTmt
; T_IPC_SRV_SUBJECT_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvSubjectCbDestroyAll destroy all subject callbacks
TipcSrvSubjectCbLookup lookup a subject callback
T_CB TipcSrvSubjectCbLookup(subject
,mt
,func
,arg
) T_STRsubject
; T_IPC_MTmt
; T_IPC_SRV_SUBJECT_CB_FUNCfunc
; T_CB_ARGarg
;
TipcSrvSubjectDefaultCbCreate create a default subject callback
TipcSrvSubjectDefaultCbLookup look up a default subject callback
TipcSrvTraverseCbCreate create a connection names traverse callback
TipcSrvTraverseCbLookup look up a connection names traverse callback
TipcSrvWriteCbCreate create a write callback in the connection to RTserver
TipcSrvWriteCbLookup look up a write callback in the connection to RTserver
The TipcSrv*Subject* functions are used to work with subjects.
TipcSrvStdSubjectSetSubscribe start or stop subscribing to all standard subjects
T_BOOL TipcSrvStdSubjectSetSubscribe(subscribe_status
,time_status
) T_BOOLsubscribe_status
; T_BOOLtime_status
;
TipcSrvSubjectGetSubscribe determine whether an RTclient is subscribing to a subject
T_BOOL TipcSrvSubjectGetSubscribe(subject
,subscribe_status_return
) T_STRsubject
; T_BOOL *subscribe_status_return
;
TipcSrvSubjectGetSubscribeLb determine whether an RTclient is subscribing to a subject, including load balancing information
T_BOOL TipcSrvSubjectGetSubscribeLb(subject
,subscribe_status_return
,lb_status_return
) T_STRsubject
; T_BOOL *subscribe_status_return
; T_BOOL *lb_status_return
;
TipcSrvSubjectGmdInit initialize GMD accounting in RTserver for a subject to which messages will be published
TipcSrvSubjectLbInit initialize load balancing accounting in RTserver for a subject to which messages will be published
TipcSrvSubjectSetSubscribe start or stop subscribing to a subject
T_BOOL TipcSrvSubjectSetSubscribe(subject
,subscribe_status
) T_STRsubject
; T_BOOLsubscribe_status
;
TipcSrvSubjectSetSubscribeEx start or stop subscribing to a subject using extended options
T_BOOL TipcSrvSubjectSetSubscribeEx(subj_name
,status
,type
,flags
,type_specific_struct
) T_STRsubj_name
; T_BOOLstatus
; T_INT4type
; T_INT4flags
; T_PTRtype_specific_struct
;
TipcSrvSubjectSetSubscribeLb start or stop subscribing to a subject, with or without load balancing
T_BOOL TipcSrvSubjectSetSubscribeLb(subject
,subscribe_status
,lb_status
) T_STRsubject
; T_BOOLsubscribe_status
; T_BOOLlb_status
;
TipcSrvSubjectTraverseSubscribe traverse the subjects that the RTclient is subscribing to
The TipcSrvGmd* functions are used to work with the guaranteed message delivery services of SmartSockets when using the publish-subscribe communication mode.
TipcSrvGmdFileCreate create a GMD area on the connection to RTserver
TipcSrvGmdFileDelete delete GMD files for the connection to RTserver
TipcSrvGmdMsgDelete delete a message from the GMD area after a GMD failure on the connection to RTserver
TipcSrvGmdMsgServerDelete delete a message in RTserver after a GMD failure on the connection to RTserver
TipcSrvGmdMsgStatus poll RTserver for GMD status of a message
These functions do not fit in with any 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.
TipcSrvCheck check if data can be read from or written to connection to RTserver
TipcSrvCreate create the connection to RTserver
TipcSrvDestroy destroy the connection to RTserver
TipcSrvIsRunning check if the RTclient can create a connection to RTserver
TipcSrvKeepAlive check if the connection to RTserver is still alive
TipcSrvLock acquire exclusive access to the connection to RTserver
TipcSrvLogAddMt add a message type to a message file logging type
TipcSrvLogRemoveMt remove a message type from a message file logging type
TipcSrvPrint print all information about the connection to RTserver in a portable, reproducible format
TipcSrvStop stop RTserver and possibly more processes
TipcSrvUnlock release exclusive access to the connection to RTserver
The TipcSrvGet* functions are used to retrieve the values of the properties of a connection to RTserver.
TipcSrvGetArch determine the architecture name of the connected RTserver
TipcSrvGetAutoFlushSize determine the automatic flush size of the connection to RTserver
TipcSrvGetBlockMode determine the block mode of the connection to RTserver
TipcSrvGetConnStatus determine the status of the connection to RTserver
TipcSrvGetGmdMaxSize determine the GMD area maximum size of the connection to RTserver
TipcSrvGetGmdNumPending determine the number of outgoing GMD messages still pending on the connection to RTserver
TipcSrvGetNumQueued get the number of queued messages from the connection to RTserver
TipcSrvGetSocket determine the socket of the connection to RTserver
TipcSrvGetTimeout get a timeout property from the connection to RTserver
TipcSrvGetXtSource get source suitable for XtAppAddInput from the connection to RTserver
The TipcSrvSet* functions are used to set the values of the properties of a connection to RTserver.
TipcSrvSetAutoFlushSize set the automatic flush size of the connection to RTserver
TipcSrvSetBlockMode set the block mode of the connection to RTserver
TipcSrvSetGmdMaxSize set the GMD area maximum size of the connection to RTserver
TipcSrvSetSocket set the socket of the connection to RTserver
TipcSrvSetTimeout set a timeout property of the connection to RTserver
TipcSrvSetUsernamePassword set the basic credentials of the connection to RTserver
These TipcSrvGet* functions are used to retrieve the values of the properties of a peer connection to RTserver.
TipcSrvGetNode determine the node name of the connected RTserver
TipcSrvGetPid determine the process ID of the connected RTserver
TipcSrvGetUniqueSubject determine the unique subject of the connected RTserver
TipcSrvGetUser determine the user name of the connected RTserver
These functions are used to read, process, or search for messages arriving from RTserver.
TipcSrvMainLoop read and process messages on the connection to RTserver
TipcSrvMsgNext retrieve the next message from the connection to RTserver
TipcSrvMsgProcess process a message in the connection to RTserver
TipcSrvMsgSearch search the message queue of the connection to RTserver for a specific message
T_IPC_MSG TipcSrvMsgSearch(timeout
,func
,arg
) T_REAL8timeout
; T_IPC_CONN_MSG_SEARCH_FUNCfunc
; T_PTRarg
;
TipcSrvMsgSearchType search the message queue of a connection to RTserver for a message with a specific type
TipcSrvRead read all available data from the connection to RTserver and queue messages in priority order
These functions are used to publish messages using RTserver.
TipcSrvFlush flush buffered outgoing messages on the connection to RTserver
TipcSrvMsgInsert insert a message into the queue of the connection to RTserver
TipcSrvMsgSend send a message through the connection to RTserver
TipcSrvMsgSendRpc make a remote procedure call (RPC) with messages on the connection to RTserver
TipcSrvMsgWrite construct a message and send it through the connection to RTserver
T_BOOL TipcSrvMsgWrite(dest
,mt
,check_server_msg_send
, ...) T_STRdest
; T_IPC_MTmt
; T_BOOLcheck_server_msg_send
;
TipcSrvMsgWriteVa construct a message and send it through the connection to RTserver (va_list
version)
T_BOOL TipcSrvMsgWriteVa(dest
,mt
,check_server_msg_send
,var_arg_list
) 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 |