Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.server.message.direct_message.PersistentServerMessage Class Reference
Inheritance diagram for cpc.server.message.direct_message.PersistentServerMessage:

Public Member Functions

def persistIncomingConnection
def persistOutgoingConnection
- Public Member Functions inherited from
def getSocket
def connect
def handleSocket
def prepareHeaders
def handleResponseHeaders
def putRequest
- Public Member Functions inherited from
def connect
def handleSocket
def prepareHeaders
def handleResponseHeaders
def sendRequest

Public Attributes

- Public Attributes inherited from

Static Public Attributes


Detailed Description

    The purpose of this class is to handle persistent server to server

    It contains to message types persistIncomingConnections and

    persistIncomingConnection returns the underlying socket instead of
    putting it back to the connection pool.
    The server should be responsible for monitoring this socket for
    incoming requests

    persistOutgoingConnection is simpler. it puts back the connection to
    the pool and assumes that the receiving server will monitor this
    connection for requests.

Member Function Documentation

def cpc.server.message.direct_message.PersistentServerMessage.persistIncomingConnection (   self)
def cpc.server.message.direct_message.PersistentServerMessage.persistOutgoingConnection (   self)
This is just a simple ping message, the keep-alive header will
ensure that the other end wont close the connection

Member Data Documentation

string cpc.server.message.direct_message.PersistentServerMessage.INBOUND_CONNECTION = "IN"
string cpc.server.message.direct_message.PersistentServerMessage.OUTBOUND_CONNECTION = "OUT"

The documentation for this class was generated from the following file: