Table of Contents

Class: Connection | Twisted-0.17.4/twisted/internet/tcp.py
--- | ---

### I am the superclass of all socket-based FileDescriptors.

This is an abstract superclass of all objects which represent a TCP/IP connection based socket.

Base Classes |
--- | ---
abstract.FileDescriptor protocol.Transport styles.Ephemeral

Methods |
--- | ---
__init__ connectionLost doRead logPrefix writeSomeData
| __init__

    __init__ (
            self,
            skt,
            protocol,
            )

| connectionLost

    connectionLost ( self )

See abstract.FileDescriptor.connectionLost().

| doRead

    doRead ( self )

### Calls self.protocol.dataReceived with all available data.

This reads up to self.bufferSize bytes of data from its socket, then calls self.dataReceived(data) to process it. If the connection is not lost through an error in the physical recv(), this function will return the result of the dataReceived call.

| logPrefix

    logPrefix ( self )

Return the prefix to log with when I own the logging thread.

| writeSomeData

    writeSomeData ( self,  data )

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)

Table of Contents

This document was automatically generated on Sat Apr 20 01:30:49 2002 by HappyDoc version 2.0