equal
deleted
inserted
replaced
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
49 }; |
49 }; |
50 |
50 |
51 public: // methods |
51 public: // methods |
52 |
52 |
53 static CSocket* NewL(MCommsInfoProvider& aCommsInfoProvider, TSocketType aSocketType); |
53 static CSocket* NewL(MCommsInfoProvider& aCommsInfoProvider, TSocketType aSocketType); |
54 |
54 |
|
55 static CSocket* New(MCommsInfoProvider& aCommsInfoProvider, TSocketType aSocketType); |
|
56 |
55 virtual ~CSocket(); |
57 virtual ~CSocket(); |
56 |
58 |
57 TInt Listen(TUint aQSize, TUint16 aPort); |
59 TInt Listen(TUint aQSize, TUint16 aPort); |
58 |
60 |
59 void Accept(CSocket& aBlankSocket, TRequestStatus& aStatus); |
61 void Accept(CSocket& aBlankSocket, TRequestStatus& aStatus); |
95 private: // methods |
97 private: // methods |
96 |
98 |
97 CSocket(MCommsInfoProvider& aCommsInfoProvider); |
99 CSocket(MCommsInfoProvider& aCommsInfoProvider); |
98 |
100 |
99 void ConstructL(TSocketType aSocketType); |
101 void ConstructL(TSocketType aSocketType); |
100 |
102 |
|
103 TInt Construct(TSocketType aSocketType); |
101 private: |
104 private: |
102 |
105 |
103 /** The comms info provider |
106 /** The comms info provider |
104 */ |
107 */ |
105 MCommsInfoProvider& iCommsInfoProvider; |
108 MCommsInfoProvider& iCommsInfoProvider; |