version 1.23.14.1, 2006/11/03 05:36:01
|
version 1.24.18.1, 2008/01/02 21:00:39
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// Dan Gorey, IBM (djgorey@us.ibm.com) |
|
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_HTTPConnector_h | #ifndef Pegasus_HTTPConnector_h |
|
|
| |
@param host indicates host to connect to | @param host indicates host to connect to |
@param portNumber indicates port number to use | @param portNumber indicates port number to use |
@param outputMessageQueue output message queue for the HTTPConnection |
|
that will be created. |
|
@exception InvalidLocatorException |
|
@exception CannotCreateSocketException |
|
@exception CannotConnectException |
|
*/ |
|
inline HTTPConnection* connect( |
|
const String& host, |
|
const Uint32 portNumber, |
|
MessageQueue* outputMessageQueue) |
|
{ |
|
return connect(host, portNumber, NULL, outputMessageQueue); |
|
} |
|
|
|
/** Establishes a new connection and creates an HTTPConnection object |
|
to represent it. |
|
|
|
@param host indicates host to connect to |
|
@param portNumber indicates port number to use |
|
@param sslContext Specifies the SSL context to use for this connection | @param sslContext Specifies the SSL context to use for this connection |
|
@param timeoutMilliseconds Specifies the connection timeout. |
|
If a socket is non-blocking and a connection is in progress after |
|
the initial attempt, the connection will be attempted until the |
|
specified timeout is reached. If the specified timeout is zero, |
|
the connection will not be re-attempted. The timeout is not |
|
applicable for a blocking socket. |
@param outputMessageQueue output message queue for the HTTPConnection | @param outputMessageQueue output message queue for the HTTPConnection |
that will be created. | that will be created. |
@exception InvalidLocatorException | @exception InvalidLocatorException |
|
|
const String& host, | const String& host, |
const Uint32 portNumber, | const Uint32 portNumber, |
SSLContext * sslContext, | SSLContext * sslContext, |
|
Uint32 timeoutMilliseconds, |
MessageQueue* outputMessageQueue); | MessageQueue* outputMessageQueue); |
| |
/** Destroys all the connections created by this connector. */ | /** Destroys all the connections created by this connector. */ |
|
|
/** Delete the specified connection. */ | /** Delete the specified connection. */ |
void _deleteConnection(HTTPConnection* httpConnection); | void _deleteConnection(HTTPConnection* httpConnection); |
| |
// Added for NamedPipe implementation for windows |
|
#if defined PEGASUS_OS_TYPE_WINDOWS && !defined(PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET) |
|
/** Used for local connections on windows */ |
|
HTTPConnection* _connectNamedPipe(MessageQueue* outputMessageQueue); |
|
#endif |
|
Monitor* _monitor; | Monitor* _monitor; |
HTTPConnectorRep* _rep; | HTTPConnectorRep* _rep; |
| |
SSLContext * _sslcontext; | SSLContext * _sslcontext; |
int _entry_index; | int _entry_index; |
|
|
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |