telnet --- sockets ?

maximilianscherr MaximilianScherr at T-Online.de
Tue Jan 22 17:52:24 EST 2002


You got it:) I'm infact a total newbie.
i'm now trying to send the data in a loop, to be sure the serv has 
the info when i want to receive stuff.
thanks,



--- In python-list at y..., "Joshua Muskovitz" <joshm at t...> wrote:
> "maximilianscherr" <MaximilianScherr at T...> wrote in message
> news:mailman.1011734492.16085.python-list at p...
> > ...thewholeconnstuff
> > s.send("sservinfo\n")
> > res = s.recv(128)
> > print res
> >
> > output: no output, it hangs!, so -> DOESN'T WORK
> 
> Because sockets are not instantaneous, so the data will probably 
not be
> there when you are ready to call s.recv().  After following a 
number of your
> posts related to sockets, it is clear that you don't really 
understand how
> they work.  I stongly recommend _UNIX Network Programming_ by W. 
Richard
> Stevens as a book to teach you more than you want to know about 
them.
> 
> --
> # Joshua Muskovitz
> # joshm at t...
> def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
> lyyrs('Hire me!  I need the work!')
> 
> 
> 
> 
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
> -- 
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list