listening socket doesnt answer
Cliff Crawford
cjc26 at nospam.cornell.edu
Mon Oct 2 22:57:21 EDT 2000
* Alexander K <ak42 at altavista.com> menulis:
|
| where do i best learn about the different address/protocol
| families, and how they decide the format for the .bind() method?
If you're on a *nix system, try "man socket" :) Or look for a file
called socket.h, which is the C header file declaring the socket
functions.
Also the python library reference page for the socket modules says that
it supports AF_UNIX and AF_INET protocols, but apparently nothing else..
| when dealing with a inet/stream socket i pass a tuple to bind,
| right? like this .bind((hostname, port)) where hostname is a
| string and port an integer.
| but in the other cases?
With Unix domain sockets, you just pass the filename since they
don't have ports associated with them. So something like
soc.bind('/tmp/blah') should work.
--
cliff crawford http://www.people.cornell.edu/pages/cjc26/
"Man, the Internet is so cool." -Robert
More information about the Python-list
mailing list