Changeset 706 for tools

Show
Ignore:
Timestamp:
11/04/07 15:22:59 (13 months ago)
Author:
michiel
Message:

nc still did not disconnect.
Debug data and make socket non-blocking

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/nsa/nsa.py

    r705 r706  
    155155                self.sock.bind((HOST, PORT)) 
    156156                self.sock.listen(1) 
     157                self.sock.setblocking(0) 
    157158         
    158159        def do_process(self): 
     
    165166                                while not done: 
    166167                                        data = client.recv(1024) 
     168                                        print data 
    167169                                        if not data: 
    168170                                                done = True