bluetoothmgmt/bluetoothclientlib/inc/aclsockaddr.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     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 #ifndef ACL_SOCK_H
       
    17 #define ACL_SOCK_H
       
    18 
       
    19 #include <bt_sock.h>
       
    20 
       
    21 /** 
       
    22 @file
       
    23 @internalComponent
       
    24 */
       
    25 
       
    26 enum TACLPort
       
    27 /** ACL port types.
       
    28 @internalComponent
       
    29 */
       
    30 	{
       
    31 	EACLPortRaw		= 0x00,		/*!< Raw port type */
       
    32 	EACLPortL2CAP	= 0x01,		/*!< L2CAP port type */
       
    33 	EACLPortUnset	= 0xFF,		/*!< Unspecified ACL port type */
       
    34 	};
       
    35 
       
    36 
       
    37 // SAP types for baseband
       
    38 /** ACL socket type
       
    39 @internalTechnology
       
    40 */
       
    41 static const TUint KSockBluetoothTypeACL = KMaxTUint;
       
    42 /** Raw broadcast socket type
       
    43 @internalTechnology
       
    44 */
       
    45 static const TUint KSockBluetoothTypeRawBroadcast = KMaxTUint-2;
       
    46 
       
    47 NONSHARABLE_CLASS(TACLSockAddr) : public TBTSockAddr
       
    48 /** ACL Socket Address.
       
    49 
       
    50 Use this class to specify a local or remote baseband connection end-point,
       
    51 This is tied to the flags field in ACL data packets
       
    52 @internalComponent
       
    53 */
       
    54 	{
       
    55 public:
       
    56 	IMPORT_C TACLSockAddr();
       
    57 	IMPORT_C TACLSockAddr(const TSockAddr& aSockAddr);
       
    58 	IMPORT_C static TACLSockAddr& Cast(const TSockAddr& aSockAddr);
       
    59 	//
       
    60 	IMPORT_C TACLPort Port() const;
       
    61 	IMPORT_C void SetPort(TACLPort aPort);
       
    62 	};
       
    63 
       
    64 
       
    65 #endif // ACL_SOCK_H