42.2.1.0.1 OTcl methods

Following is a list of OTcl interfaces related to connection management in https objects:

rX id & return the id of the https object, which is the id of the node the object is attached to.

get-cnc client & return the TCP agent associated with $client (https object).

is-connected server & return 0 if not connected to $server, 1 otherwise.

send client bytes callback & send $bytes of data to $client. When it's done, execute $callback (a OTcl command).

connect client TCP & associate a TCP agent with $client (https object). That agent will be used to send packets to $client.

disconnect client & delete the association of a TCP agent with $client. Note that neither the TCP agent nor $client is not deleted, only the association is deleted.



Tom Henderson 2014-12-17