|
1 /** @file |
|
2 * Copyright (c) 2005-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: CUpnpUdpSendRequest |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <in_sock.h> |
|
21 #include "upnpudpsendrequest.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CUpnpUdpSendRequest::NewL |
|
27 // Two-phased constructor. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 CUpnpUdpSendRequest* CUpnpUdpSendRequest::NewL( TDesC8& aBuffer, |
|
31 TInetAddr& anAddr ) |
|
32 { |
|
33 CUpnpUdpSendRequest* self = new (ELeave) CUpnpUdpSendRequest( anAddr ); |
|
34 CleanupStack::PushL( self ); |
|
35 self->ConstructL( aBuffer ); |
|
36 CleanupStack::Pop( self ); |
|
37 return self; |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CUpnpUdpSendRequest::CUpnpUdpSendRequest |
|
42 // C++ default constructor can NOT contain any code, that |
|
43 // might leave. |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 CUpnpUdpSendRequest::CUpnpUdpSendRequest( const TInetAddr& anAddr ) |
|
47 : iAddr( anAddr ) |
|
48 { |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CUpnpUdpSendRequest::ConstructL |
|
53 // Symbian 2nd phase constructor can leave. |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 void CUpnpUdpSendRequest::ConstructL( const TDesC8& aBuffer ) |
|
57 { |
|
58 iBuffer = aBuffer.AllocL(); |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CUpnpUdpSendRequest::~CUpnpUdpSendRequest |
|
63 // Destructor |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 CUpnpUdpSendRequest::~CUpnpUdpSendRequest() |
|
67 { |
|
68 delete iBuffer; |
|
69 } |
|
70 |
|
71 // End of File |