NetworkAgent Class Reference
[Network]

#include <NetworkAgent.h>

Inherits MicoleAgentThread.

Collaboration diagram for NetworkAgent:

Collaboration graph
[legend]
List of all members.

Detailed Description

Tunnel beetween local bus and a distant bus.

This class provide network connection with a distant network. Creation of a distant connection is provided by the function startNework in AbstractMicoleApplication classes.

Prefix you message by "Net: " to ensure what your message is send on distant Network.

Example:

 Net: OUT VTP : right=(0000000000001111,0000000011110000,0000111100000000,1111000000000000); dur=100;

See also:
ServerAgent | DServerAgent | AbstractMicoleApplication::startNetwork

Definition at line 61 of file NetworkAgent.h.

Public Member Functions

 NetworkAgent (char *domain, int port)
 ~NetworkAgent ()
virtual void run ()
 thread main loop
void sendOnNetwork (string s)

Protected Member Functions

virtual void prepareToStop (int argc, const char **argv)
 callback when thread is prepared to be stopped
virtual void prepareToSuspend (int argc, const char **argv)
 callback when thread is prepared to be suspended


Constructor & Destructor Documentation

NetworkAgent::NetworkAgent ( char *  domain,
int  port 
)

Definition at line 29 of file NetworkAgent.cpp.

NetworkAgent::~NetworkAgent (  ) 

Definition at line 66 of file NetworkAgent.cpp.


Member Function Documentation

void NetworkAgent::prepareToStop ( int  argc,
const char **  argv 
) [protected, virtual]

callback when thread is prepared to be stopped

Definition at line 95 of file NetworkAgent.cpp.

void NetworkAgent::prepareToSuspend ( int  argc,
const char **  argv 
) [protected, virtual]

callback when thread is prepared to be suspended

Definition at line 99 of file NetworkAgent.cpp.

void NetworkAgent::run (  )  [virtual]

thread main loop

Implements MicoleAgentThread.

Definition at line 69 of file NetworkAgent.cpp.

void NetworkAgent::sendOnNetwork ( string  s  ) 

Definition at line 86 of file NetworkAgent.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Oct 16 17:11:03 2007 for Micole by  doxygen 1.4.7