GTK+ IOStream
Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
|
#include <ORB.H>
Public Member Functions | |
ORBBase (void) | |
Constructor using ORB_DEFAULT_BASEPORT as the starting base network port. More... | |
ORBBase (int basePortDifferent) | |
int | getPortOffset (void) |
void | removePortOffset (int whichOffset) |
int | getTCPUDPPort (int portOffset) |
int | getSSLPort (int portOffset) |
int | getBasePort (void) |
string | generateEndPoint (const string &transportName, std::string &ipAddress, int &portOffset) |
string | generateEndPoint (string &transportName, string ipAddress, int portOffset) |
Private Member Functions | |
void | init (int basePortDifferent) |
Private Attributes | |
int | basePort |
The starting network port. More... | |
IceUtil::Mutex | countMutex |
Mutex semaphore to enable the manipulation of the offsetList. More... | |
list< int > | offsetList |
The list of port offsets used. More... | |
Common class to maintain port offsets
The offsetList is a list of integers which represents available port offsets from a network basePort. Each time ORBBase::getPortOffset() is called, the first available port offset is added to the list of used offsets (offsetList) and returned. This class also provides methods for generating the actual TCP, UDP and SSL socket ports from the provided details and the class state. This class also provides a method for generating sensible Zeroc ICE endpoint (and proxy) strings using the ORBBase::generateEndPoint method. The ORBBase::generateEndPoint method is used for both the ORBOriginator and ORBReplicator sides of the network.
|
inline |
|
inline |
Generates an endpoint string specifying where others will connect to OR what to connect to.
transportName | is the name of the application layer property which will provide ORB services |
ipAddress | if not empty, then append the host's ip address (or hostname) to connect to, otherwise, if empty, generate the endpoint string to route to a machine on a network |
portOffset | The offset from the basePort to use |
|
inline |
generates an endpoint string specifying where others will connect to OR what to connect to.
transportName | is the name of the application layer property which will provide ORB services |
ipAddress | if not empty, then append the host's ip address (or hostname) to connect to, otherwise, if empty, generate the endpoint string to route to a machine on a network |
portOffset | The offset from the basePort to use |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
private |
|
private |