[cse491] Testing multiple connections...

Andrew Thielking thielkin at msu.edu
Tue Sep 29 09:07:06 PDT 2009


yeah i used multiple telnet sessions, seemed to work pretty good.

On Tue, Sep 29, 2009 at 6:45 AM, Steve Wakeford <wakeford at msu.edu> wrote:

>  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 listcse491-fall-2009 at lists.idyll.orghttp://lists.idyll.org/listinfo/cse491-fall-2009
>
>
> _______________________________________________
> 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/6ca56db7/attachment-0001.htm>


More information about the cse491-fall-2009 mailing list