TCP Status Objects -- Python library reference



Next: UDP Stream Objects Prev: TCP Stream Objects Up: mactcp Top: Top

14.9.2. TCP Status Objects

This object has no methods, only some members holding information on the connection. A complete description of all fields in this objects can be found in the Apple documentation. The most interesting ones are:

localHost -- attribute of TCP status
localPort -- attribute of TCP status
remoteHost -- attribute of TCP status
remotePort -- attribute of TCP status
The integer IP-addresses and port numbers of both endpoints of the connection.
sendWindow -- attribute of TCP status
The current window size.
amtUnackedData -- attribute of TCP status
The number of bytes sent but not yet acknowledged. sendWindow - amtUnackedData is what you can pass to Send without blocking.
amtUnreadData -- attribute of TCP status
The number of bytes received but not yet read (what you can Recv without blocking).


Next: UDP Stream Objects Prev: TCP Stream Objects Up: mactcp Top: Top