activemq-cpp-3.6.0
|
Class used to create Server Sockets, subclasses can be created that create certain types of server sockets according to specific policies. More...
#include <src/main/decaf/net/ServerSocketFactory.h>
Public Member Functions | |
virtual | ~ServerSocketFactory () |
virtual ServerSocket * | createServerSocket () |
Create a new ServerSocket that is unbound. | |
virtual ServerSocket * | createServerSocket (int port)=0 |
Create a new ServerSocket that is bound to the given port. | |
virtual ServerSocket * | createServerSocket (int port, int backlog)=0 |
Create a new ServerSocket that is bound to the given port. | |
virtual ServerSocket * | createServerSocket (int port, int backlog, const InetAddress *address)=0 |
Create a new ServerSocket that is bound to the given port. |
Static Public Member Functions | |
static ServerSocketFactory * | getDefault () |
Returns the Default ServerSocket factory, the pointer is owned by the Decaf runtime and should not be deleted by the caller. |
Protected Member Functions | |
ServerSocketFactory () |
Class used to create Server Sockets, subclasses can be created that create certain types of server sockets according to specific policies.
|
protected |
|
virtual |
|
virtual |
Create a new ServerSocket that is unbound.
The ServerSocket will have been configured with the defaults from the factory.
IOException | if the ServerSocket cannot be created for some reason. |
Reimplemented in decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory, decaf::internal::net::ssl::DefaultSSLServerSocketFactory, and decaf::internal::net::DefaultServerSocketFactory.
|
pure virtual |
Create a new ServerSocket that is bound to the given port.
The ServerSocket will have been configured with the defaults from the factory.
port | The port to bind the ServerSocket to. |
IOException | if the ServerSocket cannot be created for some reason. |
Implemented in decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory, decaf::internal::net::ssl::DefaultSSLServerSocketFactory, and decaf::internal::net::DefaultServerSocketFactory.
|
pure virtual |
Create a new ServerSocket that is bound to the given port.
The ServerSocket will have been configured with the defaults from the factory. The ServerSocket will use the specified connection backlog setting.
port | The port to bind the ServerSocket to. |
backlog | The number of pending connect request the ServerSocket can queue. |
IOException | if the ServerSocket cannot be created for some reason. |
Implemented in decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory, decaf::internal::net::ssl::DefaultSSLServerSocketFactory, and decaf::internal::net::DefaultServerSocketFactory.
|
pure virtual |
Create a new ServerSocket that is bound to the given port.
The ServerSocket will have been configured with the defaults from the factory. The ServerSocket will bind to the specified interface on the local host, and accept connections only on that interface. If the address parameter is NULL than the ServerSocket will listen on all interfaces.
port | The port to bind the ServerSocket to. |
backlog | The number of pending connect request the ServerSocket can queue. |
address | The address of the interface on the local machine to bind to. |
IOException | if the ServerSocket cannot be created for some reason. |
Implemented in decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory, decaf::internal::net::ssl::DefaultSSLServerSocketFactory, and decaf::internal::net::DefaultServerSocketFactory.
|
static |
Returns the Default ServerSocket factory, the pointer is owned by the Decaf runtime and should not be deleted by the caller.
Only one default ServerSocketFactory exists for the lifetime of the Application.
Reimplemented in decaf::net::ssl::SSLServerSocketFactory.