telnet --- sockets ?

Joshua Muskovitz joshm at
Tue Jan 22 17:40:50 EST 2002

"maximilianscherr" <MaximilianScherr at> wrote in message
news:mailman.1011734492.16085.python-list at
> ...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
def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
lyyrs('Hire me!  I need the work!')

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

More information about the Python-list mailing list