|
1 /* |
|
2 * Copyright (c) 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: UDP receiver |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_CNCMUDPRECEIVER_H |
|
22 #define C_CNCMUDPRECEIVER_H |
|
23 |
|
24 #include "cncmreceiver.h" |
|
25 |
|
26 /** |
|
27 * UDP receiver |
|
28 * |
|
29 * @lib connectionmux.lib |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CNcmUdpReceiver ) : public CNcmReceiver |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Two-phased constructor |
|
39 * |
|
40 * @param aSocket RSocket |
|
41 * @param aObserver Observer |
|
42 */ |
|
43 static CNcmUdpReceiver *NewL( RSocket& aSocket, |
|
44 MNcmReceiverSenderObserver& aObserver ); |
|
45 |
|
46 /** |
|
47 * Two-phased constructor |
|
48 * |
|
49 * @param aSocket RSocket |
|
50 * @param aObserver Observer |
|
51 */ |
|
52 static CNcmUdpReceiver *NewLC( RSocket& aSocket, |
|
53 MNcmReceiverSenderObserver& aObserver ); |
|
54 |
|
55 /** |
|
56 * Destructor |
|
57 */ |
|
58 virtual ~CNcmUdpReceiver(); |
|
59 |
|
60 // from base class CNcmReceiver |
|
61 |
|
62 /** |
|
63 * Sends iBuffer to iSocket |
|
64 * |
|
65 * @since S60 v3.2 |
|
66 * @return void |
|
67 */ |
|
68 void DoReceive(); |
|
69 |
|
70 |
|
71 private: |
|
72 |
|
73 CNcmUdpReceiver( RSocket& aSocket, |
|
74 MNcmReceiverSenderObserver& aObserver ); |
|
75 }; |
|
76 |
|
77 |
|
78 #endif // C_CNCMUDPRECEIVER_H |