Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module tcp :: Class Client |
|
Ephemeral
--+ |Logger
--+ |FileDescriptor
--+ |Connection
--+ |BaseClient
--+ | Client
Client
Method Summary | |
---|---|
__init__(self,
host,
port,
bindAddress,
connector,
reactor)
| |
__repr__(self)
| |
Returns an IPv4Address. | |
Returns an IPv4Address. | |
Inherited from BaseClient | |
| |
Called by base classes to continue to next stage of initialization. | |
| |
See abstract.FileDescriptor.connectionLost(). | |
(internal) Create a non-blocking socket using self.addressFamily, self.socketType. | |
I connect the socket. | |
| |
| |
| |
Stop attempt to connect. | |
Inherited from Connection | |
Called to close our socket. | |
| |
Calls self.protocol.dataReceived with all available data. | |
Return the socket for this connection. | |
| |
| |
Return the prefix to log with when I own the logging thread. | |
| |
| |
Connection.writeSomeData(data) -> #of bytes written | CONNECTION_LOST This writes as much data as possible to the socket and returns either the number of bytes read (which is positive) or a connection error code (which is negative) | |
Inherited from FileDescriptor | |
Called after a loseConnection(), when all data has been written. | |
Called when data is available for writing. | |
File Descriptor number for select(). | |
Close the connection at the next available opportunity. | |
| |
Register to receive data from a producer. | |
| |
Start waiting for read availability. | |
Start waiting for write availability. | |
Stop consuming data. | |
| |
Stop waiting for read availability. | |
Stop waiting for write availability. | |
Stop consuming data from a producer, without disconnecting. | |
Reliably write some data. | |
| |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
Inherited from BaseClient | |
int |
addressFamily = 2 |
int |
socketType = 1 |
Inherited from Connection | |
tuple |
__implements__ = ((<class twisted.internet.interfaces.IP...
|
str |
logstr = 'Uninitialized'
|
int |
TLS = 0 |
Inherited from FileDescriptor | |
int |
bufferSize = 65536 |
int |
connected = 0 |
str |
dataBuffer = ''
|
int |
disconnected = 0 |
int |
disconnecting = 0 |
int |
offset = 0 |
NoneType |
producer = None |
int |
producerPaused = 0 |
int |
streamingProducer = 0 |
Method Details |
---|
getHost(self)Returns an IPv4Address. This indicates the address from which I am connecting. |
getPeer(self)Returns an IPv4Address. This indicates the address that I am connected to. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:18 2004 | http://epydoc.sf.net |