0
|
1 |
/*
|
|
2 |
* Copyright (c) 2004-2005 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#define TRACE_PREFIX "WSOCK: InterfaceFactory: "
|
|
20 |
#include "wsock.h"
|
|
21 |
#include "WinsockInterface.h"
|
|
22 |
#include "WinsockInterfaceFactory.h"
|
|
23 |
|
|
24 |
CWinsockInterfaceFactory::CWinsockInterfaceFactory()
|
|
25 |
{
|
|
26 |
}
|
|
27 |
|
|
28 |
CWinsockInterfaceFactory::~CWinsockInterfaceFactory()
|
|
29 |
{
|
|
30 |
}
|
|
31 |
|
|
32 |
// CNifIfFactory
|
|
33 |
CNifIfBase* CWinsockInterfaceFactory::NewInterfaceL(const TDesC& aName)
|
|
34 |
{
|
|
35 |
return NewInterfaceL(aName, NULL);
|
|
36 |
}
|
|
37 |
|
|
38 |
CNifIfBase* CWinsockInterfaceFactory::NewInterfaceL(const TDesC& DEBUG_ONLY(aName),
|
|
39 |
MNifIfNotify* aNotify)
|
|
40 |
{
|
|
41 |
TRACE2("NewInterfaceL(%S,%08X)",&aName,aNotify);
|
|
42 |
return new(ELeave)CWinsockInterface(this, aNotify);
|
|
43 |
}
|
|
44 |
|
|
45 |
TInt CWinsockInterfaceFactory::Info(TNifIfInfo& /*aInfo*/,
|
|
46 |
TInt DEBUG_ONLY(aIndex)) const
|
|
47 |
{
|
|
48 |
TRACE1("Info(%d)",aIndex);
|
|
49 |
return KErrNotFound;
|
|
50 |
}
|
|
51 |
|
|
52 |
// CNifFactory
|
|
53 |
void CWinsockInterfaceFactory::InstallL()
|
|
54 |
{
|
|
55 |
TRACE("Install()");
|
|
56 |
}
|