Base class of the PeerHood service system. Each service defined by the IDL language will be derived from this base class. This class should not be used directly by an application developer. Instead, the PeerHood IDL compiler will generate all necessary stub and skeleton class automatically.
Public Methods
-
~CPHObject()
- Destructor.
-
const char* GetName()
- Returns the name of the object.
-
const std::string& GetPrototype() const
- Returns the prototype of object's desired networking technology.
-
const std::string& GetAddress() const
- Returns object's address.
-
const int GetPort() const
- Returns object's port.
-
MAbstractConnection* GetConnection()
- Returns a pointer to object's connection.
-
void SetConnection(MAbstractConnection* aConnection)
- Associates a connection with the object.
Documentation
Base class of the PeerHood service system. Each service defined by the IDL language will be derived from this base class. This class should not be used directly by an application developer. Instead, the PeerHood IDL compiler will generate all necessary stub and skeleton class automatically.
~CPHObject()
-
Destructor. If a connection is associated with the object then it is
closed and deleted before the object is allowed to cease.
- Returns:
- none
const char* GetName()
-
Returns the name of the object.
- Returns:
- object's name
const std::string& GetPrototype() const
-
Returns the prototype of object's desired networking technology.
- Returns:
- the prototype of object's desired networking technology
const std::string& GetAddress() const
-
Returns the address that is associated with the object. This is also
the address of the device that hosts the object.
- Returns:
- the address associated with the object
const int GetPort() const
-
Returns the port part of object's address. The port is used by the
PeerHood library when contacting the service mapped to the object.
- Returns:
- port part of the address associated with the object
MAbstractConnection* GetConnection()
-
Returns a pointer to objects connection.
- Returns:
- pointer to object's connection object or NULL if there's no
associated connection
void SetConnection(MAbstractConnection* aConnection)
-
Associates a connection with the object. If another connection is
already associated with the object then it's closed and deleted before the
new connection is associated.
- Returns:
- none
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.