Example #1
0
 def handle_RRQ (self, ipacket, client_address):
     from os import urandom
     from random import randint
     from StringIO import StringIO
     
     print "Handling %s from %s, sending random data." % (ipacket, client_address)
     stream = StringIO ( urandom ( randint(1000,20000) ) )
     Protocol.Handle_RRQ ( ipacket, client_address, stream )
     
     return stream.len()