version 1.13, 2002/07/26 20:01:19
|
version 1.17, 2003/10/22 14:26:03
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2003//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
/** Establishes a new connection and creates an HTTPConnection object | /** Establishes a new connection and creates an HTTPConnection object |
to represent it. | to represent it. |
| |
@param locator indicates which server to connect to (of the form |
@param host indicates host to connect to |
host:port). |
@param portNumber indicates port number to use |
@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 InvalidLocator |
@exception InvalidLocatorException |
@exception CannotCreateSocket |
@exception CannotCreateSocketException |
@exception CannotConnect |
@exception CannotConnectException |
@exception UnexpectedFailure |
|
*/ | */ |
inline HTTPConnection* connect( | inline HTTPConnection* connect( |
const String& locator, |
const String& host, |
|
const Uint32 portNumber, |
MessageQueue* outputMessageQueue) | MessageQueue* outputMessageQueue) |
{ | { |
return connect(locator, NULL, outputMessageQueue); |
return connect(host, portNumber, NULL, outputMessageQueue); |
} | } |
| |
/** Establishes a new connection and creates an HTTPConnection object | /** Establishes a new connection and creates an HTTPConnection object |
to represent it. | to represent it. |
| |
@param locator indicates which server to connect to (of the form |
@param host indicates host to connect to |
host:port). |
@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 outputMessageQueue output message queue for the HTTPConnection | @param outputMessageQueue output message queue for the HTTPConnection |
that will be created. | that will be created. |
@exception InvalidLocator |
@exception InvalidLocatorException |
@exception CannotCreateSocket |
@exception CannotCreateSocketException |
@exception CannotConnect |
@exception CannotConnectException |
@exception UnexpectedFailure |
|
*/ | */ |
HTTPConnection* connect( | HTTPConnection* connect( |
const String& locator, |
const String& host, |
|
const Uint32 portNumber, |
SSLContext * sslContext, | SSLContext * sslContext, |
MessageQueue* outputMessageQueue); | MessageQueue* outputMessageQueue); |
| |