Issues.00273 - lordmundi/wikidoctest GitHub Wiki
00273: add tcl commands to dcomm to get connection info
Summary: add tcl commands to dcomm to get connection info
Created: 2010–08–31 13:08
Status: Released
Category: Request
From: frankie
Version: 2.1
Released_In: 2.2
Description:
this is a request for tcl commands to query the dcomm plugin for the following information:
- whether the plugin is running as a server or a client
- if multicast is enabled
- mc_group
- mc_port
- mc_tag
- tcp_port
- server address
- number of clients connected
Comments
A series of new tcl commands have been added. Note, this required an alteration to both the dsp_dcomm_tc plugin and the libd_comm_tc library. The new commands are:
dcomm is_server - returns 1 if running as a server, 0 otherwise
dcomm is_client - returns 1 if running as a client, 0 otherwise
dcomm is_multicast_enabled - returns 1 if multicast is enabled, 0 otherwise
dcomm get_mc_group - returns the multicast group for this client/server
dcomm get_mc_port - returns the multicast port for this client/server
dcomm get_mc_tag - returns the multicast tag for this client/server
dcomm get_tcp_port - returns the tcp listen port for this client/server
dcomm get_server_address - returns the ip address of the server in ###.###.###.### format
dcomm get_num_clients - returns the current number of clients for this server (ret −1 for client)