#include <vos/corelibs/vos/site.hh>
Inheritance diagram for VOS::Site:
It is a normal Vobject itself, but also supports a number of other methods. Think of sites as the connecting lines across which a Vobject may exchange messages with another Vobject on another host across the Internet.
Definition at line 104 of file site.hh.
|
|
|
|
|
|
|
Add a host alias to this site. A host alias is a legal name by which this site may be refered to.
Referenced by VOS::AsyncConnect::operator()(). |
|
Save a message block template for later retrival and execution.
|
|
Implemented in VOS::LocalSite, and VOS::RemoteSite. |
|
Add a site to the master table of known sites.
Referenced by VOS::RemoteStreamSite::runScript(). |
|
Create an object with no types.
|
|
Same as the other createMetaObject method, but takes a deque of type strings rather than a variable list of strings.
Implemented in VOS::LocalSite, and VOS::RemoteSite. |
|
Create a new MetaObject on this site.
// Create an example object with two types: 3D cube and Hypercard. vRef<MetaObject> obj1 = site.createMetaObject("example", "object3D:cube", typeid(Hypercard).name(), 0); // Create another example object with no types. Because the same // name an the previos object ("example") is specified, this object will be // renamed when created, probably to "example1" or something similiar. vRef<MetaObject> obj2 = site.createMetaObject("example" , 0); Implemented in VOS::LocalSite, and VOS::RemoteSite. |
|
Create a new metaobject with one type, and cast it to that type.
|
|
|
|
Referenced by VOS::RemoteStreamSite::runScript(). |
|
Find a site by its host alias. Will contact remote sites as necessary.
|
|
Flush any incoming buffers (eg read any data waiting in sockets).
Implemented in VOS::LocalSite, VOS::LocalSocketSite, VOS::RemoteSite, VOS::RemoteSocketSite, and VOS::RemoteStreamSite. |
|
Implemented in VOS::LocalSite, and VOS::RemoteSite. |
|
|
|
Generate random and unique numerical name. (Used by the createMetaObject methods).
|
|
Get the current table of known sites, which maps host aliases to sites.
|
|
Get the local site with which new remote sites will peered.
|
|
Referenced by VOS::AsyncConnect::connect(). |
|
Get a list of host alias.
|
|
|
|
|
|
Retrive a saved message block template.
|
|
|
|
Get the site this object resides on.
Reimplemented from VOS::MetaObject. Reimplemented in VOS::LocalSite, and VOS::RemoteSite. |
|
Reimplemented from VOS::MetaObject. |
|
Tests for the existance of a given host alias.
|
|
|
|
Referenced by VOS::RemoteSocketSite::enableOutgoing(), and VOS::RemoteSocketSite::suppressOutgoing(). |
|
Implemented in VOS::LocalSite, VOS::RemoteSite, VOS::RemoteSocketSite, and VOS::RemoteStreamSite. |
|
Implemented in VOS::LocalSite, and VOS::RemoteSite. |
|
Remove a host alias of this site.
|
|
Remove a saved message block template.
|
|
|
|
Referenced by VOS::RemoteSocketSite::enableOutgoing(). |
|
Remove a site from the master table of known sites.
|
|
Sends a block of messages to the object. This may trigger immediate processing of the message if the object is local.
Reimplemented from VOS::MetaObject. Reimplemented in VOS::LocalSite, VOS::RemoteSite, VOS::RemoteSocketSite, and VOS::RemoteStreamSite. |
|
Sends a message to the object. This may trigger immediate processing of the message if the object is local.
Reimplemented from VOS::MetaObject. Reimplemented in VOS::LocalSite, VOS::LocalSocketSite, VOS::RemoteSite, VOS::RemoteSocketSite, and VOS::RemoteStreamSite. Referenced by VOS::RemoteVobject::sendMessage(). |
|
Set the local site with which new remote sites will peered.
|
|
Referenced by VOS::RemoteSite::RemoteSite(). |
|
Set the base URL ("vop://host:port") that this site will use.
Implemented in VOS::LocalSite, and VOS::RemoteSite. |
|
|
|
Generate unique object name by appending successive integers to the given base (if necesary). (Used by the createMetaObject methods). |
|
Implemented in VOS::LocalSite, and VOS::RemoteSite. |
|
All sockets open to this process. Used so that the process, if desired, can sleep on select(), blocking indefinitely, and wake up when data comes in from any open socket. Definition at line 135 of file site.hh. Referenced by VOS::RemoteSocketSite::excise(), and VOS::LocalSocketSite::getFDset(). |
|
|
|
Definition at line 121 of file site.hh. Referenced by VOS::RemoteSocketSite::sendMessage(). |