Re: whereis SOCKET

Reimer Behrends (behrends@buran.fb10.tu-berlin.de)
5 Mar 1995 19:34:58 GMT

Michal Spalinski (mspal@prospero.fuw.edu.pl) wrote:

: in Demo/Socket there is the pair of programs broadcast.py and
: radio.py. They import a module named SOCKET (capitals). My Python
: cannot find this SOCKET.

: In the library reference that I have it says the module SOCKET
: contains definitions of some constants (SOL_somethingorother).

: Where is SOCKET???

: It is not in python1.1.tar.gz which I got from ftp.cwi.nl.

Use the h2py.py script in the Demo/scripts directory to create
SOCKET.py from /usr/include/sys/socket.h (or wherever that file resides
on your system). The constants in there are os-dependent and thus
cannot be part of the distribution.

Reimer Behrends