/* Nserver For Linux Copyright (C) 1999 Sean Billings This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef LINUX #define CNUL 0 #endif /* some constants */ #define NOKIA_CMD 0x95 /*RB mode command*/ #define NOKIA_HDR1 0x00 #define NOKIA_HDR2 0x01 #define NOKIA_CHK 0x02 /*Checksum Command ID*/ #define NOKIA_BLK 0x03 /*Block Quote ID*/ #define NOKIA_CMD1 "\x95\x04\x74\xA1" #define NOKIA_CMD2 "\x95\x05\x55\xB1" #define NOKIA_EXIT "\033EX" #define NOKIA_ACK "\x1b\x41\x43\x4b" #define NOKIA_NAK "\x1b\x4e\x41\x4b" #define NOKIA_SYNC "\xFF" #define NOKIA_NF1 "\x95\x01\x20\x95\x03\x02\xa3\x01" /*no file message*/ #define NOKIA_NF2 "\x95\x00\x20\x95\x03\x02\x17\x77" /*no file message*/ #define BUF_SIZE 2049 #define PKT_SIZE 1024