do telnet-clients not connect() ?
Alexander K
read at the.sig
Sun Oct 1 05:17:05 EDT 2000
hello!
i am trying to make a socketserver.
dunno for what yet, mainly learning i guess.
i am on a linux(2.2.16) system with python 1.52.
so, i open a socket like this:
-> s = socket(AF_INET, SOCK_STREAM)
-> s.bind(hostname, port)
-> s.listen(2)
-> (peer, address) = s.accept()
and then i can start another pythonprogram and connect() to that
port. send() and recv() work fine too.
so i telnetted to host:port to see if it accept() 'ed that.
it didnt.
after the telnetattempt i ran netstat and saw that s was still
in LISTEN mode.
howcome?
telnet communicates on TCP, right?
and surely it must make a connect() of some kind?
but why wont my script notice?
tia / alex k
--
.
.
... ~~~:[ com dot altavista at ak42 ]:~~~ ...
More information about the Python-list
mailing list