equal
deleted
inserted
replaced
|
1 /** @file |
|
2 * Copyright (c) 2005-2006 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: Declares IP Address Util functions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_UPNIPADDRESSUTILS_H |
|
20 #define C_UPNIPADDRESSUTILS_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <in_sock.h> |
|
24 |
|
25 // NAMESPACE DECLARATION |
|
26 namespace UpnpIpAddressUtil |
|
27 { |
|
28 /** |
|
29 GetIfNameForIap |
|
30 |
|
31 Reads the IF name for the specified IAP ID. |
|
32 @param aIapId IAP ID for reading IF name |
|
33 @param aIfName interface name |
|
34 **/ |
|
35 IMPORT_C void GetIfNameForIap( TUint32 aIapId, TDes& aIfName ); |
|
36 |
|
37 /** |
|
38 MatchIfNameWithIpInterface |
|
39 |
|
40 Matches IF name with IP address of the TCP/IP stack interfaces. |
|
41 @param aSocketServer Socket Server to be used for reading interfaces |
|
42 @param aIfName IF name to be found from IP interfaces |
|
43 @param aIfIndex reference that will be set to interface index |
|
44 @return mimetype |
|
45 **/ |
|
46 IMPORT_C TInetAddr MatchIfNameWithIpInterface( RSocketServ& aSocketServer, |
|
47 TDesC& aIfName, |
|
48 TInt& aInterfaceIndex ); |
|
49 } |
|
50 |
|
51 #endif // C_UPNIPADDRESSUTILS_H |