3 * ----------------------------------------------------------------------
4 * Protocol packet definitions for CcXstream Server for XBMC Media Center
5 * ----------------------------------------------------------------------
7 * Copyright (c) 2002-2003 by PuhPuh
9 * This code is copyrighted property of the author. It can still
10 * be used for any non-commercial purpose following conditions:
12 * 1) This copyright notice is not removed.
13 * 2) Source code follows any distribution of the software
15 * 3) Copyright notice above is found in the documentation
16 * of the distributed software.
18 * Any express or implied warranties are disclaimed. Author is
19 * not liable for any direct or indirect damages caused by the use
22 * ----------------------------------------------------------------------
24 * This code has been integrated into XBMC Media Center.
25 * As such it can me copied, redistributed and modified under
26 * the same conditions as the XBMC itself.
30 #ifndef CC_XPACKET_H_INCLUDED
31 #define CC_XPACKET_H_INCLUDED 1
34 /* Server -> Client */
35 CC_XSTREAM_XBMSP_PACKET_OK = 1,
36 CC_XSTREAM_XBMSP_PACKET_ERROR = 2,
37 CC_XSTREAM_XBMSP_PACKET_HANDLE = 3,
38 CC_XSTREAM_XBMSP_PACKET_FILE_DATA = 4,
39 CC_XSTREAM_XBMSP_PACKET_FILE_CONTENTS = 5,
40 CC_XSTREAM_XBMSP_PACKET_AUTHENTICATION_CONTINUE = 6,
41 /* Client -> Server */
42 CC_XSTREAM_XBMSP_PACKET_NULL = 10,
43 CC_XSTREAM_XBMSP_PACKET_SETCWD = 11,
44 CC_XSTREAM_XBMSP_PACKET_FILELIST_OPEN = 12,
45 CC_XSTREAM_XBMSP_PACKET_FILELIST_READ = 13,
46 CC_XSTREAM_XBMSP_PACKET_FILE_INFO = 14,
47 CC_XSTREAM_XBMSP_PACKET_FILE_OPEN = 15,
48 CC_XSTREAM_XBMSP_PACKET_FILE_READ = 16,
49 CC_XSTREAM_XBMSP_PACKET_FILE_SEEK = 17,
50 CC_XSTREAM_XBMSP_PACKET_CLOSE = 18,
51 CC_XSTREAM_XBMSP_PACKET_CLOSE_ALL = 19,
52 CC_XSTREAM_XBMSP_PACKET_SET_CONFIGURATION_OPTION = 20,
53 CC_XSTREAM_XBMSP_PACKET_AUTHENTICATION_INIT = 21,
54 CC_XSTREAM_XBMSP_PACKET_AUTHENTICATE = 22,
55 CC_XSTREAM_XBMSP_PACKET_UPCWD = 23,
56 /* Server discovery packets */
57 CC_XSTREAM_XBMSP_PACKET_SERVER_DISCOVERY_QUERY = 90,
58 CC_XSTREAM_XBMSP_PACKET_SERVER_DISCOVERY_REPLY = 91
62 CC_XSTREAM_XBMSP_ERROR_OK = 0,
63 CC_XSTREAM_XBMSP_ERROR_FAILURE = 1,
64 CC_XSTREAM_XBMSP_ERROR_UNSUPPORTED = 2,
65 CC_XSTREAM_XBMSP_ERROR_NO_SUCH_FILE = 3,
66 CC_XSTREAM_XBMSP_ERROR_INVALID_FILE = 4,
67 CC_XSTREAM_XBMSP_ERROR_INVALID_HANDLE = 5,
68 CC_XSTREAM_XBMSP_ERROR_OPEN_FAILED = 6,
69 CC_XSTREAM_XBMSP_ERROR_TOO_MANY_OPEN_FILES = 7,
70 CC_XSTREAM_XBMSP_ERROR_TOO_LONG_READ = 8,
71 CC_XSTREAM_XBMSP_ERROR_ILLEGAL_SEEK = 9,
72 CC_XSTREAM_XBMSP_ERROR_OPTION_IS_READ_ONLY = 10,
73 CC_XSTREAM_XBMSP_ERROR_INVALID_OPTION_VALUE = 11,
74 CC_XSTREAM_XBMSP_ERROR_AUTHENTICATION_NEEDED = 12,
75 CC_XSTREAM_XBMSP_ERROR_AUTHENTICATION_FAILED = 13
78 #define CC_XSTREAM_DEFAULT_PORT 1400
80 #endif /* CC_XPACKET_H_INCLUDED */
81 /* eof (ccxpacket.h) */