Package sulley :: Module pedrpc :: Class server
[show private | hide private]
[frames | no frames]

Class server


Method Summary
  __init__(self, host, port)
  serve_forever(self)
  __debug(self, msg)
  __disconnect(self)
Ensure the socket is torn down.
Mixed __pickle_recv(self)
This routine is used for marshaling arbitrary data from the PyDbg server.
  __pickle_send(self, data)
This routine is used for marshaling arbitrary data to the PyDbg server.

Method Details

__disconnect(self)

Ensure the socket is torn down.

__pickle_recv(self)

This routine is used for marshaling arbitrary data from the PyDbg server. We can send pretty much anything here. For example a tuple containing integers, strings, arbitrary objects and structures. Our "protocol" is a simple length-value protocol where each datagram is prefixed by a 4-byte length of the data to be received.
Returns:
Whatever is received over the socket.
           (type=Mixed)
Raises:
pdx - An exception is raised if the connection was severed.

__pickle_send(self, data)

This routine is used for marshaling arbitrary data to the PyDbg server. We can send pretty much anything here. For example a tuple containing integers, strings, arbitrary objects and structures. Our "protocol" is a simple length-value protocol where each datagram is prefixed by a 4-byte length of the data to be received.
Parameters:
data - Data to marshal and transmit. Data can *pretty much* contain anything you throw at it.
           (type=Mixed)
Raises:
pdx - An exception is raised if the connection was severed.

Generated by Epydoc 2.1 on Fri Jul 27 17:40:03 2007 http://epydoc.sf.net