Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.network.server_to_server_message.ServerToServerMessage Class Reference
Inheritance diagram for cpc.network.server_to_server_message.ServerToServerMessage:
cpc.network.broadcast_message.BroadcastMessage cpc.server.message.server_message.ServerMessage

Public Member Functions

def initialize
 
def delegateMessage
 

Static Public Member Functions

def connectToSelf
 
def getNetworkTopology
 
def requestNetworkTopology
 

Public Attributes

 endNode
 
 hostNode
 
 host
 
 port
 
 serverId
 

Detailed Description

Network-related server-to-server messages. 
   Only those messages related to network topology should go here, the
   rest should be in cpc.server.message.server_message.

Member Function Documentation

def cpc.network.server_to_server_message.ServerToServerMessage.connectToSelf (   headers)
static
def cpc.network.server_to_server_message.ServerToServerMessage.delegateMessage (   self,
  headers,
  messageStream 
)
Delegate the message to another server. Reads the message we get
   and requests a response from another client.
def cpc.network.server_to_server_message.ServerToServerMessage.getNetworkTopology ( )
static
Used when a server wants to initiate a network topology request
Tries to first get the topology from the cache
def cpc.network.server_to_server_message.ServerToServerMessage.initialize (   self,
  endNodeId 
)
def cpc.network.server_to_server_message.ServerToServerMessage.requestNetworkTopology (   topology)
static
Asks each neigbouring node for their network topology

inputs:
    topology:Nodes The list of the topology generated so far

Member Data Documentation

cpc.network.server_to_server_message.ServerToServerMessage.endNode
cpc.network.server_to_server_message.ServerToServerMessage.host
cpc.network.server_to_server_message.ServerToServerMessage.hostNode
cpc.network.server_to_server_message.ServerToServerMessage.port
cpc.network.server_to_server_message.ServerToServerMessage.serverId

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