Peach::Publishers::pppublisher::ClientServer Class Reference

ClientServer(Publisher). More...

Inherits Peach::publisher::Publisher.

List of all members.

Public Member Functions

def __init__
 Constructor of HotFuzz custom publisher.

Public Attributes

 elementType
 We store element type, so we can easily find out at any time what type of object it is.
 CLIENT_HOST
 Interface on which proxy should accept connections from client.
 CLIENT_PORT
 Port on which proxy should accept connections from client.
 SERVER_HOST
 Server host to which should proxy connect.
 SERVER_PORT
 Server port to which should proxy connect.
 TRANSFER_BLOCK_SIZE
 How much data should be received at single moment.
 PROTOCOL_FAMILY
 Protocol family of communication protocol (TCP/UDP).
 PROTOCOL_PORT
 Standard port of communication protocol.
 CLIENT_SRC_HOST
 Stores address, from which last client request came.
 CLIENT_SRC_PORT
 Stores port, from which last client request came.
 SELECT_TIMEOUT
 How long should proxy wait for packets from client and server before it finishes the iteration.
 SELECT_READ_TIMEOUT
 How long should proxy wait for incoming data before it tries to analyze them.
 INITIAL_SELECT_TIMEOUT
 How long should proxy wait for the first message of communication.
 CONNECTION_ATTEMPTS_LIMIT
 How many times should proxy try to connect to the server before giving up.
 CONNECTION_ATTEMPT_TIMEOUT
 How long should proxy wait between connection attempts.

Private Attributes

 _clientStarted
 Indication whether client application was already started.


Detailed Description

ClientServer(Publisher).

HotFuzz custom publisher class It stores values important for communication with client and server


Member Function Documentation

def Peach::Publishers::pppublisher::ClientServer::__init__ (   self,
  clientHost,
  clientPort,
  serverHost,
  serverPort,
  protocolFamily,
  protocolPort,
  communicationTimeout = 5 
)

Constructor of HotFuzz custom publisher.

Stores input variables and initializes constants that are important for handling communication with client and server

Parameters:
clientHost Interface on which proxy should accept connections from client.
clientPort Port on which proxy should accept connections from client.
serverHost Server host to which should proxy connect.
serverPort Server port to which should proxy connect.
protocolFamily Protocol family of communication protocol (TCP/UDP).
protocolPort Standard port of communication protocol.
communicationTimeout How long should proxy wait for packets from client and server before it finishes the iteration. Default value is 5 seconds


Member Data Documentation

Indication whether client application was already started.

Interface on which proxy should accept connections from client.

Variable had slightly different meaning in first version and changing its name will be probably part of future refactorization.

Port on which proxy should accept connections from client.

Variable had slightly different meaning in first version and changing its name will be probably part of future refactorization.

Stores address, from which last client request came.

Stores port, from which last client request came.

How long should proxy wait between connection attempts.

How many times should proxy try to connect to the server before giving up.

We store element type, so we can easily find out at any time what type of object it is.

How long should proxy wait for the first message of communication.

It needs to be big enough, so it gives enough time to client application to start.

Protocol family of communication protocol (TCP/UDP).

Important for data analysis.

Standard port of communication protocol.

Important for data analysis.

How long should proxy wait for incoming data before it tries to analyze them.

First line of defence against segmentation.

How long should proxy wait for packets from client and server before it finishes the iteration.

Server host to which should proxy connect.

Server port to which should proxy connect.

How much data should be received at single moment.


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

Generated on Sat Sep 4 18:13:54 2010 for HotFuzz by  doxygen 1.5.8