telnet --- sockets ?

Joshua Muskovitz joshm at taconic.net
Tue Jan 22 23:40:50 CET 2002


"maximilianscherr" <MaximilianScherr at T-Online.de> wrote in message
news:mailman.1011734492.16085.python-list at python.org...
> ...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 taconic.net
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! =-----



More information about the Python-list mailing list