datacommsserver/esockserver/test/protocols/ptestinternalsocket/src/protocolfamily.h
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if !defined(__PROTOCOLFAMILY_H__) |
|
17 #define __PROTOCOLFAMILY_H__ |
|
18 |
|
19 #include "es_ptestinternalsocket.h" |
|
20 #include <es_prot.h> |
|
21 #include <comms-infras/nifif.h> |
|
22 #include <dns_qry.h> |
|
23 |
|
24 //--------------------------------------------------------------------------------------------------------- |
|
25 |
|
26 NONSHARABLE_CLASS(CTestIntSocketProtocolFamily): public CProtocolFamilyBase |
|
27 { |
|
28 private: |
|
29 CTestIntSocketProtocolFamily(); |
|
30 public: |
|
31 static CTestIntSocketProtocolFamily * NewL(); |
|
32 void ConstructL(); |
|
33 TInt Install(); |
|
34 TInt Remove(); |
|
35 CProtocolBase * NewProtocolL(TUint aSockType,TUint aProtocol); |
|
36 TUint ProtocolList(TServerProtocolDesc *& aProtocolList); |
|
37 private: |
|
38 void Construct(); |
|
39 private: |
|
40 TServerProtocolDesc iProtocolDescs[1]; |
|
41 }; |
|
42 |
|
43 #endif //__PROTOCOLFAMILY_H__ |
|
44 |