A client for TCP (and similiar) sockets.
Methods
|
|
|
|
__init__
|
__init__ (
self,
host,
port,
protocol,
timeout=None,
connector=None,
reactor=None,
)
Initialize the client, setting up its socket, and request to connect.
|
|
__repr__
|
__repr__ ( self )
|
|
_setRealAddress
|
_setRealAddress ( self, address )
|
|
connectionLost
|
connectionLost ( self )
|
|
createInternetSocket
|
createInternetSocket ( self )
(internal) Create an AF_INET socket.
|
|
doConnect
|
doConnect ( self )
I connect the socket.
Then, call the protocol's makeConnection, and start waiting for data.
|
|
failIfNotConnected
|
failIfNotConnected ( self, *ignored )
|
|
getHost
|
getHost ( self )
Returns a tuple of (INET , hostname, port).
This indicates the address from which I am connecting.
|
|
getPeer
|
getPeer ( self )
Returns a tuple of (INET , hostname, port).
This indicates the address that I am connected to. I implement
twisted.protocols.protocol.Transport.
|
|
resolveAddress
|
resolveAddress ( self )
|
|