Package twisted :: Package protocols :: Module basic :: Class Int32StringReceiver
[show private | hide private]
[frames | no frames]

Class Int32StringReceiver

BaseProtocol --+    
               |    
        Protocol --+
                   |
                  Int32StringReceiver


A receiver for int32-prefixed strings.

An int32 string is a string prefixed by 4 bytes, the 32-bit length of the string encoded in network byte order.

This class publishes the same interface as NetstringReceiver.
Method Summary
  connectionFailed(self)
(Deprecated) (inherited from Protocol)
  connectionLost(self, reason)
Called when the connection is shut down. (inherited from Protocol)
  connectionMade(self)
Called when a connection is made. (inherited from BaseProtocol)
  dataReceived(self, recd)
Convert int32 prefixed strings into calls to stringReceived.
  makeConnection(self, transport)
Make a connection to a transport and a server. (inherited from BaseProtocol)
  sendString(self, data)
Send an int32-prefixed string to the other end of the connection.
  stringReceived(self, msg)
Override this.

Class Variable Summary
int MAX_LENGTH
str recvd

Method Details

dataReceived(self, recd)

Convert int32 prefixed strings into calls to stringReceived.
Overrides:
twisted.internet.protocol.Protocol.dataReceived

sendString(self, data)

Send an int32-prefixed string to the other end of the connection.

stringReceived(self, msg)

Override this.

Class Variable Details

MAX_LENGTH

Type:
int
Value:
99999                                                                  

recvd

Type:
str
Value:
''                                                                     

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:22 2003 http://epydoc.sf.net