Trees | Indices | Help |
|
---|
|
Low-level transport class.
This is used on the client side.
This could be replace by any other class that provides the same semantics to the Client. This means:
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
|
|
Constructor for the Client class. Arguments:
There are two timeouts used since we might want to wait for a long time for a response, but the connect timeout should be lower. If not passed, we use a default of 10 and respectively 60 seconds. Note that on reading data, since the timeout applies to an invidual receive, it might be that the total duration is longer than timeout value passed (we make a hard limit at twice the read timeout). |
Send a message. This just sends a message and doesn't wait for the response. |
Try to receive a message from the socket. In case we already have messages queued, we just return from the queue. Otherwise, we try to read data with a _rwtimeout network timeout, and making sure we don't go over 2x_rwtimeout as a global limit. |
Send a message and wait for the response. This is just a wrapper over Send and Recv. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 16:51:27 2012 | http://epydoc.sourceforge.net |