ConnectionList Class Reference

#include <Connection.h>

List of all members.

Public Member Functions

int startConnection (int clientID1, int clientID2)
int hasConnection (int clientID1, int clientID2)
int terminateConnection (int clientID1, int clientID2)
int terminateConnection (int connectionID)
int isConnected (int clientID)

Detailed Description

Connection List class maintains the list of clients which are communicating It maintains the call duration Used to check the client is busy or in any other call


Member Function Documentation

int ConnectionList::hasConnection ( int  clientID1,
int  clientID2 
)

Check whether any connection is present between client ID1 and ID2

This function checks if the client having ID1 is connected to client having ID2

int ConnectionList::isConnected ( int  clientID  ) 

Check if the client is busy in another communication

This function given whether the given client is BUSY, i.e., connected to some client for connection

int ConnectionList::startConnection ( int  clientID1,
int  clientID2 
)

Connect status of each client This function will be called when a connection is about to start

starting a connection between the clients passed as argument return the connection ID of the connection between the clients

int ConnectionList::terminateConnection ( int  connectionID  ) 

Termincate the given connection

This function needs to be called when the connection having the connection ID is termincated

int ConnectionList::terminateConnection ( int  clientID1,
int  clientID2 
)

Terminate the session between the clients

This function is called when the communication between the clients is finished


The documentation for this class was generated from the following files:
 All Classes Functions

Generated on 2 Dec 2014 by  doxygen 1.6.1