|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef NATIVEHTTPSCONNECTION_H |
|
19 #define NATIVEHTTPSCONNECTION_H |
|
20 |
|
21 #include<sys/types.h> |
|
22 #include<sys/stat.h> |
|
23 #include <wchar.h> |
|
24 #include <sys/socket.h> |
|
25 #include "javaosheaders.h" |
|
26 #include <logger.h> |
|
27 |
|
28 namespace java |
|
29 { |
|
30 namespace https |
|
31 { |
|
32 |
|
33 /** |
|
34 * This class is used to write the "CONNECT" request to the proxy server. |
|
35 * It will be used only when there is a proxy server present. HttpsConnectionImpl from java will call the function of this |
|
36 * class to create a normal tcp socket to the proxy. This socket will then be made a secure socket. |
|
37 */ |
|
38 |
|
39 class NativeHttpsConnection |
|
40 { |
|
41 public : |
|
42 |
|
43 /** |
|
44 * createSocket is called by HttpsConnectionImpl java class to create a tcp socket and issue a CONNECT request. |
|
45 * |
|
46 * @param aProxy: Proxy server address |
|
47 * @param aProxyPort: Proxy server port |
|
48 * @param aHost: Destination host address, to which https connection is opened |
|
49 * @param aPort: Destination port number |
|
50 * @return the tcp socket descriptor |
|
51 */ |
|
52 int createSocket(const char *aProxy, int aProxyPort, const char *aHost, int aPort); |
|
53 |
|
54 }; |
|
55 } // end namespace https |
|
56 } // end namespace java |
|
57 #endif // NATIVEHTTPSCONNECTION_H |