datacommsserver/esockserver/inc/addressupdate.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef __ADDRESS_UPDATE_H__
       
    23 #define __ADDRESS_UPDATE_H__
       
    24 
       
    25 #include <es_sock.h>
       
    26 #include <elements/nm_signatures.h>
       
    27 
       
    28 namespace ESock
       
    29 {
       
    30 struct TAddrUpdate
       
    31 /**
       
    32 Structure to hold the details of a routed data client. Contains the source address,
       
    33 destination address, protocol id and IAP id of the socket.
       
    34  */
       
    35     {
       
    36 	/**
       
    37 	Source address of the socket
       
    38 	 */
       
    39     TSockAddr iSrcSockAddr;
       
    40 	/**
       
    41 	Destination address of the socket
       
    42 	*/
       
    43     TSockAddr iDestSockAddr;
       
    44 	/**
       
    45 	Protocol id of the socket
       
    46 	@see RSocket::Open
       
    47 	*/
       
    48     TInt iProtocolId;
       
    49 	/**
       
    50 	Internet access point id of the socket
       
    51 	*/
       
    52     TInt iIapId;
       
    53 
       
    54     TAddrUpdate(TSockAddr &aSrcSockAddr, TSockAddr& aDestSockAddr, TInt aProtocolId, TInt aIapId)
       
    55         :iSrcSockAddr(aSrcSockAddr),
       
    56          iDestSockAddr(aDestSockAddr),
       
    57          iProtocolId(aProtocolId),
       
    58          iIapId(aIapId)
       
    59          {}
       
    60 
       
    61     TAddrUpdate()
       
    62         :iProtocolId(-1),
       
    63          iIapId(-1)
       
    64         {}
       
    65     };
       
    66 
       
    67 DECLARE_MESSAGE_SIG_1(SigAddrUpdate, TAddrUpdate, AddrUpdate)
       
    68 
       
    69 } // namespace ESock
       
    70 
       
    71 #endif // __ADDRESS_UPDATE_H__
       
    72