Built-in Module mactcp

mactcp This module provides an interface to the Macintosh TCP/IP driver MacTCP. There is an accompanying module macdnr which provides an interface to the name-server (allowing you to translate hostnames to ip-addresses), a module MACTCP which has symbolic names for constants constants used by MacTCP and a wrapper module socket which mimics the socket interface (as far as possible). It may not be available in all Mac Python versions. A complete description of the MacTCP interface can be found in the Apple MacTCP API documentation.
\begin{funcdesc}{MTU}{}
Return the Maximum Transmit Unit (the packet size) of the network
interface.
\end{funcdesc}

\begin{funcdesc}{IPAddr}{}
Return the 32-bit integer IP address of the network interface.
\end{funcdesc}

\begin{funcdesc}{NetMask}{}
Return the 32-bit integer network mask of the interface.
\end{funcdesc}

\begin{funcdesc}{TCPCreate}{size}
Create a TCP Stream object. \var{size} is the ...
... the receive
buffer, \code{4096} is suggested by various sources.
\end{funcdesc}

\begin{funcdesc}{UDPCreate}{size, port}
Create a UDP stream object. \var{size} i...
...atagrams on, a value of zero will make MacTCP select a free port.
\end{funcdesc}


Subsections