vpnengine/ikesocket/src/receivequeueitem.cpp
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Receive queue item
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "receivequeueitem.h"
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // Constructor
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 TReceiveQueueItem::TReceiveQueueItem( HBufC8* aUdpData, 
       
    29                                       const TInetAddr& aSrcAddr,
       
    30                                       const TInt aLocalPort ) 
       
    31  :  iUdpData( aUdpData ),
       
    32     iSrcAddr( aSrcAddr ),
       
    33     iLocalPort( aLocalPort ) 
       
    34     {
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // Returns UDP data.
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 HBufC8* TReceiveQueueItem::UdpData() const
       
    42     {
       
    43     return iUdpData;
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // Returns source address.
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 const TInetAddr& TReceiveQueueItem::SrcAddr() const
       
    51     {
       
    52     return iSrcAddr;
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // Returns local port.
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 TInt TReceiveQueueItem::LocalPort() const
       
    60     {
       
    61     return iLocalPort;
       
    62     }
       
    63 
       
    64