Package cobra :: Class CobraSocket
[hide private]
[frames] | no frames]

Class CobraSocket

source code

Instance Methods [hide private]
 
__init__(self, socket, sflags=0) source code
 
getSockName(self) source code
 
getPeerName(self) source code
 
sendMessage(self, mtype, objname, data)
Send message is responsable for transmission of cobra messages, and socket reconnection in the event that the send fails for network reasons.
source code
 
recvMessage(self)
Returns tuple of mtype, objname, and data This method is *NOT* responsable for re-connection, because there is not context on the server side for what to send on re-connect.
source code
 
recvExact(self, size) source code
 
sendExact(self, buf) source code
Method Details [hide private]

recvMessage(self)

source code 

Returns tuple of mtype, objname, and data This method is *NOT* responsable for re-connection, because there is not context on the server side for what to send on re-connect. Client side uses of the CobraSocket object should use cobraTransaction to ensure re-tranmission of the request on reception errors.