Home | Trees | Index | Help |
---|
Package i2p :: Module samclasses :: Class DatagramSession |
|
BaseSession
--+
|
DatagramSession
Method Summary | |
---|---|
__init__(self,
name,
addr,
**kwargs)
| |
Number of packets in read buffer. | |
Internal method, got DATAGRAM RECEIVED. | |
Get a single packet. | |
Send packet with contents s to given destination. | |
Inherited from BaseSession | |
Internal command, encode extra kwargs for passing to SESSION CREATE. | |
Internal command, handshake with SAM terminal. | |
Internal command, does a NAMING LOOKUP query. | |
Internal command, got HELLO REPLY. | |
Internal command, got NAMING REPLY. | |
Internal command, got SESSION STATUS. | |
Internal command, call at end of __init__ to set up properties. | |
Close the session. |
Method Details |
---|
__len__(self)
Number of packets in read buffer.
|
_on_DATAGRAM_RECEIVED(self, **kwargs)Internal method, got DATAGRAM RECEIVED. |
recv(self, timeout=None, peek=False)Get a single packet. Blocks for up to timeout seconds if n > 0 and no packet is available (timeout=None means wait forever). If still no packet is available, raises BlockError or Timeout. Returns the pair (data, address). If peek is True, the data is not removed. |
send(self, s, dest)Send packet with contents s to given destination. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 02 01:07:41 2004 | http://epydoc.sf.net |