S60 3rd Edition SDK for Symbian OS
Example Applications Guide

ChatProtocolConstants.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : ChatProtocolConstants.h
00004 *  Part of     : Chat
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef CHATPROTOCOLCONSTANTS_H
00017 #define CHATPROTOCOLCONSTANTS_H
00018 
00019 // INCLUDES
00020 #include <bt_sock.h> 
00021 
00022 const TInt KRfcommChannel = 1;
00023 const TInt KServiceClass = 0x1101;    //  SerialPort
00024 
00025 const TUid KUidChatApp = { 0x10005B8B };
00026 
00027 _LIT( KStrRFCOMM, "RFCOMM" );
00028 
00029 const TInt KListeningQueSize = 1;
00030 const TInt KChatTextBufLength = 128;
00031 const TInt KDefaultPortNumber = 5005;
00032 const TInt KMaxServerNameLength = 256;
00033 const TInt KMaxMarkLen = 2;
00034 
00035 const TInt KChatTimeOut = 20000000; // 20 seconds time-out
00036 
00037 #endif //CHATPROTOCOLCONSTANTS_H
00038 
00039 // End of File

© Nokia 2006

Back to top