datacommsserver/esockserver/inc/ss_nodemessages_peer.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2008-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 SS_NODEMESSAGES_PEER_H
       
    23 #define SS_NODEMESSAGES_PEER_H
       
    24 
       
    25 #include <elements/nm_messages_peer.h>
       
    26 #include <comms-infras/ss_nodemessages.h>
       
    27 
       
    28 namespace ESock
       
    29 {
       
    30 
       
    31 class TCFPeer : public Messages::TEPeer
       
    32 	{
       
    33 private:
       
    34   	enum
       
    35  	{
       
    36 	ECFJoinRequest                  = 1,
       
    37 	ECFJoinComplete                 = 2,
       
    38 	};
       
    39 
       
    40 public:
       
    41     enum { ERealmId = 0x102864BB };
       
    42 
       
    43 	/*==========================================================================
       
    44 	[Name]:      TJoinRequest
       
    45 	[Semantics]: A request to add a new control or data client to the recipient's clients' list.
       
    46 		 
       
    47 	[Type]:      Request for TJoinComplete/Peerless
       
    48 	[Fallible]:  Yes.
       
    49 
       
    50 	[Structure]: 
       
    51 	param 		 iNodeId - the identity of the control client (may be different from the sender).
       
    52 	param 		 iClientType - the type of client (control or data) and flags describing the client.
       
    53 	param		 iValue - current priority of sender's node.
       
    54 	===========================================================================*/        
       
    55 	typedef ESock::TCFMessageSigNodeIdClientTypeNumberDefault<ECFJoinRequest, TCFPeer::ERealmId> TJoinRequest;
       
    56 	typedef Messages::TMessageSigVoid<ECFJoinComplete, TCFPeer::ERealmId> TJoinComplete;
       
    57 	};
       
    58 } //namespace ESock
       
    59 
       
    60 #endif
       
    61 
       
    62 // SS_NODEMESSAGES_PEER_H
       
    63