41.2.1.0.1 OTcl methods

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

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

get-cnc client & return the TCP agent associated with $client (Http 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 (Http 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 2011-11-05