#include <vos/corelibs/vos/localsocketsite.hh>
Inheritance diagram for VOS::LocalSocketSite:
It binds a TCP socket and accepts connection requests.
Definition at line 43 of file localsocketsite.hh.
|
The usual constructor to use. Gets hostname from the system (gethostname), unless "VOS_HOSTNAME" environment variable is present. Uses the first free port number <= 4231 (VOS_DEFAULT_PORT) Definition at line 162 of file localsocketsite.cc. |
|
Definition at line 192 of file localsocketsite.cc. |
|
Definition at line 200 of file localsocketsite.cc. |
|
Definition at line 218 of file localsocketsite.cc. |
|
destructor
Definition at line 228 of file localsocketsite.cc. |
|
Add an extra file descriptor to our select() call.
Definition at line 495 of file localsocketsite.cc. Referenced by VOS::RemoteSocketSite::flushOutgoingBuffers(). |
|
Calculate the timeout value of the next call to select() and return an appropriate timeval structure. If the time returned is less than the time set with setTimeoutOnSelect(), then it is amount of time to the next event (message delivery or timer callback). If a null pointer is returned, the select is expected to block indefinitely.
Definition at line 335 of file localsocketsite.cc. Referenced by flushIncomingBuffers(). |
|
Flush any incoming buffers (eg read any data waiting in sockets).
Implements VOS::LocalSite. Definition at line 395 of file localsocketsite.cc. |
|
On the supplied file descriptor sets, set all the file descriptors that a call to flushIncomingBuffers() would wait upon.
Definition at line 313 of file localsocketsite.cc. Referenced by flushIncomingBuffers(). |
|
Return the underlying system socket file descriptor on which this site is listening. You are strongly advised NOT to read or write to this file descriptor, but you may find it rather useful to know for doing your own select() calls... Definition at line 165 of file localsocketsite.hh. |
|
Get the OpenSSL context. Will return NULL if there was an error or VOS was not compiled with SSL support. Definition at line 511 of file localsocketsite.cc. Referenced by sendMessage(). |
|
Get most recent result for this file descriptor.
Definition at line 506 of file localsocketsite.cc. |
|
Remove an extra file descriptor to our select() call.
Definition at line 500 of file localsocketsite.cc. Referenced by VOS::RemoteSocketSite::flushOutgoingBuffers(). |
|
Sends a message to the object. This may trigger immediate processing of the message if the object is local.
Reimplemented from VOS::LocalSite. Definition at line 520 of file localsocketsite.cc. |
|
Set up our SSL identity.
Definition at line 575 of file localsocketsite.cc. |
|
Reimplemented from VOS::LocalSite. |
|
Definition at line 493 of file localsocketsite.cc. Referenced by flushIncomingBuffers(), and getFDset(). |
|
Definition at line 491 of file localsocketsite.cc. Referenced by flushIncomingBuffers(), and getFDset(). |
|
Definition at line 492 of file localsocketsite.cc. Referenced by flushIncomingBuffers(), and getFDset(). |