version 1.35, 2006/11/10 18:14:58
|
version 1.35.4.1, 2007/07/03 21:50:04
|
|
|
class PEGASUS_COMMON_LINKAGE HTTPAcceptor : public MessageQueue | class PEGASUS_COMMON_LINKAGE HTTPAcceptor : public MessageQueue |
{ | { |
public: | public: |
|
// Connection types. |
|
enum { LOCAL_CONNECTION, IPV4_CONNECTION, IPV6_CONNECTION }; |
|
|
typedef MessageQueue Base; | typedef MessageQueue Base; |
| |
/** Constructor. | /** Constructor. |
|
|
solicit SocketMessages on the server port (socket). | solicit SocketMessages on the server port (socket). |
@param outputMessageQueue output message queue for connections | @param outputMessageQueue output message queue for connections |
created by this acceptor. | created by this acceptor. |
@param localConnection Boolean indicating whether this acceptor is |
@param connectionType indicating the type of connection for |
only for local connections. If true, the portNumber argument is |
this acceptor. connectionType can be any one of LOCAL_CONNECTION, |
ignored. |
IPV4_CONNECTION and IPV6_CONNECTION. If connectionType is |
|
LOCAL_CONNECTION portNumber is ignored. |
@param portNumber Specifies which port number this acceptor is to | @param portNumber Specifies which port number this acceptor is to |
listen on. If this value is 0 then a port is automatically selected | listen on. If this value is 0 then a port is automatically selected |
by bind(). In this case, the actual port number used can be retrieved | by bind(). In this case, the actual port number used can be retrieved |
|
|
HTTPAcceptor( | HTTPAcceptor( |
Monitor* monitor, | Monitor* monitor, |
MessageQueue* outputMessageQueue, | MessageQueue* outputMessageQueue, |
Boolean localConnection, |
Uint16 connectionType, |
Uint32 portNumber, | Uint32 portNumber, |
SSLContext * sslcontext, | SSLContext * sslcontext, |
ReadWriteSem* sslContextObjectLock = 0); | ReadWriteSem* sslContextObjectLock = 0); |
|
|
| |
int _entry_index; | int _entry_index; |
| |
Boolean _localConnection; |
Uint16 _connectionType; |
Uint32 _portNumber; | Uint32 _portNumber; |
SSLContext* _sslcontext; | SSLContext* _sslcontext; |
ReadWriteSem* _sslContextObjectLock; | ReadWriteSem* _sslContextObjectLock; |