TipcSrvPrint


Name

TipcSrvPrint — print all information about the connection to RTserver in portable, reproducible format

Synopsis

T_BOOL TipcSrvPrint(func) 
T_OUT_FUNC func; 

Arguments

funcTutOut-style output function

Return Values

TRUE if the connection to RTserver was successfully printed, FALSE otherwise.

Diagnostics

If TipcSrvPrint fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TipcSrvPrint prints all the information about the connection to RTserver. TipcSrvPrint may attempt to automatically create a connection to RTserver. If RTclient has a warm connection to RTserver, TipcSrvPrint prints the warm connection. See TipcSrvCreate on automatic creation of connections and warm connections to RTserver.

Caution

None

See Also

See the TIBCO SmartSockets Utilities for information on TutOut

Examples

This example creates a connection to RTserver and then prints information about the connection:

if (!TipcSrvCreate(T_IPC_SRV_CONN_FULL)) { 
  return;  /* error */ 
}  
if (!TipcSrvPrint(TutOut)) { 
  return;  /* error */ 
}  

The output from the above fragment would be similar to:

Connecting to project <rtworks> on <_node> RTserver. 
Using local protocol. 
Message from RTserver: Connection established. 
Start subscribing to subject </_workstation1.tibco.com_8493>. 
Printing connection named <client:local:workstation1.tibco.com:RTSERVER>. 
logical_name = local:workstation1.tibco.com:RTSERVER. 
socket_fd = 4. 
read_buf: current = 0, size = 0, max = 65536 
write_buf: current = 0, size = 0, max = 65536 
num_queued = 0 
int format = BIG_ENDIAN 
real format = IEEE 
char format = 437 
unique subject = /_workstation1.tibco.com_8491 
node:user:pid = workstation1.tibco.com:ssuser:8491 
arch = sun4_solaris 
block mode = false 
auto flush size = 8192 
read timeout = 30 
write timeout = 30 
keep alive timeout = 5 
delivery timeout = 30 
gmd file name = rtserver 
auto gmd mode = true 
num error callbacks = 1 
no accept callbacks 
num encode callbacks = 1 
no decode callbacks 
num global read callbacks = 1 
no read callbacks 
no global write callbacks 
no write callbacks 
no global process callbacks 
num msg types with process callbacks = 16 
  msg type <mon_client_msg_recv_set_watch> has 1 callbacks. 
  msg type <mon_client_buffer_poll_call> has 1 callbacks. 
  msg type <control> has 1 callbacks. 
  msg type <mon_client_buffer_set_watch> has 1 callbacks. 
  msg type <mon_client_time_poll_call> has 1 callbacks. 
  msg type <mon_client_time_set_watch> has 1 callbacks. 
  msg type <mon_client_general_poll_call> has 1 callbacks. 
  msg type <keep_alive_call> has 1 callbacks. 
  msg type <gmd_failure> has 2 callbacks. 
  msg type <gmd_nack> has 1 callbacks. 
  msg type <mon_client_subject_poll_call> has 1 callbacks. 
  msg type <mon_client_msg_traffic_poll_call> has 1 callbacks. 
  msg type <mon_client_cb_poll_call> has 1 callbacks. 
  msg type <mon_client_msg_type_poll_call> has 1 callbacks. 
  msg type <mon_client_msg_send_set_watch> has 1 callbacks. 
  msg type <mon_client_option_poll_call> has 1 callbacks. 
no default process callbacks 
no global queue callbacks 
no queue callbacks 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com