Represents a communiation tunnel between two parties.
Calls read_and_dispatch method until there are no more messages to dispatch in the buffer.
Returns the number of operations that succeded.
This method will never block waiting. If there aren’t any more messages that can be processed, it returns.
Helper function to convert classes and functions to JSON objects.
Given a incompatible object called obj, dump_object returns a JSON hinted object that represents the original parameter.
Parameters:
Retrieves a new ID counter. Each connection has a exclusive ID counter.
It is mainly used to create internal id’s for calls.
Get the maximum timeout in seconds for operation operation.
Parameters:
Helper function for JSON loads. Given a dictionary (javascript object) returns an apropiate object (a specific class) in certain cases.
It is mainly used to convert JSON hinted classes back to real classes.
Parameters:
Call method on server.
Read one message from socket (with timeout specified by the optional argument timeout) and dispatches that message.
Parameters:
Read a line of data from socket. It removes the n at the end before returning the value.
If the original packet contained n, the message will be decoded as two or more messages.
Returns the line of data received from the socket.
Set the maximum timeout in seconds for operation operation.
Parameters:
Write a line data to socket. It appends a n at the end of the data before sending it.
The string MUST NOT contain n otherwise an AssertionError will raise.
Parameters:
Represents a object in the server-side (or client-side when speaking from the point of view of the server) . It remembers its name in the server-side to allow calls to the original object.
Parameters:
Example:
list = conn.call.newList()
for i in range(10): list.notify.add(i)
print list.call.getitems()
Closes/deletes the remote object. The server may or may not delete it at this time, but after this call we don’t longer have any access to it.
This method is automatically called when Python deletes this instance.