#include <SocketBuilder.h>
Inheritance diagram for CODEX_Quorum::SocketBuilder:

Public Member Functions | |
| SocketBuilder (int domain=PF_INET, int type=SOCK_STREAM, int protocol=0, bool blocking=false) | |
| Constructor for a SocketBuilder. | |
| SocketBuilder (const SocketBuilder &sb) | |
| Copy constructor. | |
| virtual | ~SocketBuilder () |
| Virtual destructor. | |
| virtual SocketBase * | operator() () const |
| Create a new SocketBase. | |
Protected Attributes | |
| int | m_domain |
| Protocol domain for SocketBase. | |
| int | m_type |
| Socket type for SocketBase. | |
| int | m_protocol |
| Protocol for SocketBase. | |
| bool | m_blocking |
| Blocking flag for SocketBase. | |
This class and its descendants are used by RemoteServer (and its descendants) to open sockets which are then connected to remote servers. This allows arbitrary combinations of remote server and socket types, since the base class of each hierarchy only ever cares about the base class of the other hierarchy.
Definition at line 38 of file SocketBuilder.h.
|
||||||||||||||||||||
|
Constructor for a SocketBuilder. The arguments of the constructor are those arguments needed to create a corresponding socket object.
Definition at line 53 of file SocketBuilder.h. References m_blocking, m_domain, m_protocol, and m_type. |
|
|
Create a new SocketBase. SocketBuilder is initialized with everything it needs to create a new socket. Binding to a specific port and address is not included, so a single SocketBuilder can be used to create all of the needed sockets of a given type. Reimplemented in CODEX_Quorum::LoopbackSocketBuilder, and CODEX_SSL::SSLSocketBuilder. Definition at line 24 of file SocketBuilder.cc. References m_blocking, m_domain, m_protocol, and m_type. |
1.4.1