decaf::internal::net::DefaultServerSocketFactory Class Reference

Default implementation of the Decaf ServerSocketFactory, creates ServerSocket objects with supplied options. More...

#include <src/main/decaf/internal/net/DefaultServerSocketFactory.h>

Inheritance diagram for decaf::internal::net::DefaultServerSocketFactory:
Inheritance graph
[legend]

Public Member Functions

 DefaultServerSocketFactory ()
virtual ~DefaultServerSocketFactory ()
virtual decaf::net::ServerSocketcreateServerSocket ()
 Create a new ServerSocket that is unbound.The ServerSocket will have been configured with the defaults from the factory.
Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.

virtual decaf::net::ServerSocketcreateServerSocket (int port)
 Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory.
Parameters:
port The port to bind the ServerSocket to.
Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.

virtual decaf::net::ServerSocketcreateServerSocket (int port, int backlog)
 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.
Parameters:
port The port to bind the ServerSocket to.
backlog The number of pending connect request the ServerSocket can queue.
Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.

virtual decaf::net::ServerSocketcreateServerSocket (int port, int backlog, const decaf::net::InetAddress *address)
 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.
Parameters:
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.
Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.


Detailed Description

Default implementation of the Decaf ServerSocketFactory, creates ServerSocket objects with supplied options.

Since:
1.0

Constructor & Destructor Documentation

decaf::internal::net::DefaultServerSocketFactory::DefaultServerSocketFactory (  ) 
virtual decaf::internal::net::DefaultServerSocketFactory::~DefaultServerSocketFactory (  )  [virtual]

Member Function Documentation

virtual decaf::net::ServerSocket* decaf::internal::net::DefaultServerSocketFactory::createServerSocket ( int  port,
int  backlog,
const decaf::net::InetAddress address 
) [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.

Parameters:
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.
Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.

Implements decaf::net::ServerSocketFactory.

virtual decaf::net::ServerSocket* decaf::internal::net::DefaultServerSocketFactory::createServerSocket ( int  port,
int  backlog 
) [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.

Parameters:
port The port to bind the ServerSocket to.
backlog The number of pending connect request the ServerSocket can queue.
Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.

Implements decaf::net::ServerSocketFactory.

virtual decaf::net::ServerSocket* decaf::internal::net::DefaultServerSocketFactory::createServerSocket ( int  port  )  [virtual]

Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory.

Parameters:
port The port to bind the ServerSocket to.
Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.

Implements decaf::net::ServerSocketFactory.

virtual decaf::net::ServerSocket* decaf::internal::net::DefaultServerSocketFactory::createServerSocket (  )  [virtual]

Create a new ServerSocket that is unbound.The ServerSocket will have been configured with the defaults from the factory.

Returns:
new ServerSocket pointer that is owned by the caller.
Exceptions:
IOException if the ServerSocket cannot be created for some reason.

Reimplemented from decaf::net::ServerSocketFactory.


The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1