hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Inc/MTCPPortListenerObserver.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: Events for TCP port listener |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MTCPPORTLISTENEROBSERVER_H |
|
21 #define MTCPPORTLISTENEROBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32def.h> |
|
25 #include <es_sock.h> |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Events for TCP port listener. |
|
32 */ |
|
33 NONSHARABLE_CLASS( MTCPPortListenerObserver ) |
|
34 { |
|
35 |
|
36 public: // Abstract functions |
|
37 |
|
38 /** |
|
39 * Notifies that TCP port listener has accepted an incoming |
|
40 * TPC connection. |
|
41 * @param aSocket RSocket object that has an opened subsession |
|
42 * to Socket server. This means that the object who implements |
|
43 * this event has the ownership and is responsible in closing the |
|
44 * subsession too! |
|
45 */ |
|
46 virtual void ConnectionAcceptedL( RSocket* aSocket ) = 0; |
|
47 |
|
48 /** |
|
49 * Notifies that error has occurred. |
|
50 * @param aErrorCode Error code. |
|
51 */ |
|
52 virtual void ErrorL( TInt aErrorCode ) = 0; |
|
53 |
|
54 /** |
|
55 * Notifies that the observer has leaved while executing the callback |
|
56 * function. |
|
57 * @param aLeaveCode Leave code. |
|
58 */ |
|
59 virtual void ObserverLeaved( TInt aLeaveCode ) = 0; |
|
60 }; |
|
61 |
|
62 #endif // MTCPPORTLISTENEROBSERVER_H |
|
63 |
|
64 // End of File |