Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(1)  |  Import(1)
Simple subclass for TCP packets 

src/s/s/sslsnoop-HEAD/sslsnoop/network.py   sslsnoop(Download)
    #q = multiprocessing.Queue(QUEUE_SIZE)
    q = Queue.Queue(QUEUE_SIZE)
    st = stream.TCPStream(q, connection)
    #save in both directions
    self.streams[(shost,sport,dhost,dport)] = (st,q)

src/s/s/sslsnoop-0.11/sslsnoop/network.py   sslsnoop(Download)
    #q = multiprocessing.Queue(QUEUE_SIZE)
    q = Queue.Queue(QUEUE_SIZE)
    st = stream.TCPStream(q, connection)
    #save in both directions
    self.streams[(shost,sport,dhost,dport)] = (st,q)

src/s/s/sslsnoop-HEAD/sslsnoop/align.py   sslsnoop(Download)
 
from network import Sniffer
from stream  import TCPStream
class PcapFileSniffer2(Sniffer):
  ''' Use scapy's offline mode to simulate network by reading a pcap file.
class TCPStream2(TCPStream):
  def run(self):
    ''' loops on self.inQueue and calls triage '''
    retry=1
    while self.check():