Package sulley :: Module sessions :: Class connection
[show private | hide private]
[frames | no frames]

Type connection

object --+    
         |    
      edge --+
             |
            connection


Method Summary
  __init__(self, src, dst, callback)
Extends pgraph.edge with a callback option.
    Inherited from edge
String render_edge_gml(self, graph)
Render an edge description suitable for use in a GML file using the set internal attributes.
pydot.Edge() render_edge_graphviz(self, graph)
Render an edge suitable for use in a Pydot graph using the set internal attributes.
String render_edge_udraw(self, graph)
Render an edge description suitable for use in a GML file using the set internal attributes.
String render_edge_udraw_update(self)
Render an edge update description suitable for use in a GML file using the set internal attributes.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from edge
int color = 0                                                                     
NoneType dst = None                                                                  
str gml_arrow = 'none'
float gml_line_width = 1.0                                                                   
int gml_stipple = 1                                                                     
NoneType id = None                                                                  
str label = ''
NoneType src = None                                                                  

Method Details

__init__(self, src, dst, callback=None)
(Constructor)

Extends pgraph.edge with a callback option. This allows us to register a function to call between node transmissions to implement functionality such as challenge response systems. The callback method must follow this prototype:
   def callback(session, node, edge, sock)
Where node is the node about to be sent, edge is the last edge along the current fuzz path to "node", session is a pointer to the session instance which is useful for snagging data such as sesson.last_recv which contains the data returned from the last socket transmission and sock is the live socket. A callback is also useful in situations where, for example, the size of the next packet is specified in the first packet.
Parameters:
src - Edge source ID
           (type=Integer)
dst - Edge destination ID
           (type=Integer)
callback - (Optional, def=None) Callback function to pass received data to between node xmits
           (type=Function)
Overrides:
sulley.pgraph.edge.edge.__init__

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