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:
cpc.network.com.server_connection.ServerConnection cpc.network.com.connection_base.ConnectionBase

Public Member Functions

def persistIncomingConnection
 
def persistOutgoingConnection
 
- Public Member Functions inherited from cpc.network.com.server_connection.ServerConnection
def getSocket
 
def connect
 
def handleSocket
 
def prepareHeaders
 
def handleResponseHeaders
 
def putRequest
 
- Public Member Functions inherited from cpc.network.com.connection_base.ConnectionBase
def connect
 
def handleSocket
 
def prepareHeaders
 
def handleResponseHeaders
 
def sendRequest
 

Public Attributes

 storeInConnectionPool
 
 createConnection
 
- Public Attributes inherited from cpc.network.com.server_connection.ServerConnection
 node
 
 httpsConnectionPool
 
 connected
 
 conf
 
 storeInConnectionPool
 
 createConnection
 
 conn
 

Static Public Attributes

string INBOUND_CONNECTION = "IN"
 
string OUTBOUND_CONNECTION = "OUT"
 

Detailed Description

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

    It contains to message types persistIncomingConnections and
    persistOutgoingconnections.

    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

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

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