class CPHObject

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

[more] ~CPHObject()
Destructor.
[more]const char* GetName()
Returns the name of the object.
[more]const std::string& GetPrototype() const
Returns the prototype of object's desired networking technology.
[more]const std::string& GetAddress() const
Returns object's address.
[more]const int GetPort() const
Returns object's port.
[more]MAbstractConnection* GetConnection()
Returns a pointer to object's connection.
[more]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.
o ~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

oconst char* GetName()
Returns the name of the object.

Returns:
object's name

oconst std::string& GetPrototype() const
Returns the prototype of object's desired networking technology.

Returns:
the prototype of object's desired networking technology

oconst 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

oconst 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

oMAbstractConnection* GetConnection()
Returns a pointer to objects connection.

Returns:
pointer to object's connection object or NULL if there's no associated connection

ovoid 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++.