[cse491] Testing multiple connections...

Steve Wakeford wakeford at msu.edu
Tue Sep 29 03:45:02 PDT 2009


I am using a script like the spambot but have something like this:

...
sock1=sock.socket()
sock2=sock.socket()
sock3=sock.socket()
...
(other socket connection code)
...
sock1.sendall("asdf")
sock2.sendall("jkl;")
sock3.sendall("qwer")
...
time.sleep(1) # let the recv() calls get the full echos
...
print sock1.recv(4096)
print sock2.recv(4096)
print sock3.recv(4096)
...

-Steve

Joseph Christian Blossom wrote:
> How are you guys testing for multiple connections? I currently am 
> opening up several telnet sessions on my mac and it seems to work, 
> however I'm not sure if this is the best?
> ------------------------------------------------------------------------
>
> _______________________________________________
> cse491-fall-2009 mailing list
> cse491-fall-2009 at lists.idyll.org
> http://lists.idyll.org/listinfo/cse491-fall-2009
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/cse491-fall-2009/attachments/20090929/81374c77/attachment.htm 


More information about the cse491-fall-2009 mailing list