IRCBot Plugin API  v5
remote_protocol.h
Go to the documentation of this file.
1 #ifndef __INCLUDE_IRCBOT_REMOTE_PROTOCOL_H__
2 #define __INCLUDE_IRCBOT_REMOTE_PROTOCOL_H__
3 
10 #define MAX_REMOTE_PACKET_SIZE 4096
11 
12 typedef struct {
13  char title[64]; //stream title
14  char dj[64];
18 } STREAM_INFO;
19 
20 #pragma pack(1)
21 typedef struct {
25 
26 typedef struct {
27  uint32 size; // 4GB - 1 byte file size limit, you really shouldn't be sending files that big through RadioBot anyway
28  uint8 hash[40];
29  char filename[1];
31 #pragma pack()
32 
33 #ifdef __DSL_H__
34 COMPILE_TIME_ASSERT(sizeof(REMOTE_UPLOAD_START) == 45)
35 COMPILE_TIME_ASSERT(sizeof(REMOTE_UPLOAD_DATA) == 5)
36 COMPILE_TIME_ASSERT(sizeof(STREAM_INFO) == 140)
37 #endif
38 
40  // Client to Server Commands
41  // - Login/Control Commands
42  RCMD_LOGIN = 0x00,
46 
47  // - Request System Commands
51  RCMD_SEND_REQ = 0x13,
52  RCMD_REQ = 0x14,
53  RCMD_SEND_DED = 0x15,
55 
56  // - Misc Commands
57  RCMD_DOSPAM = 0x20,
58  RCMD_DIE = 0x21,
60  RCMD_RESTART = 0x23,
63  RCMD_REHASH = 0x26,
67 
68  // - Source Control Commands
72  RCMD_SRC_NEXT = 0x33,
78 
79  // - User Control Commands
81 
82  // Server to Client Commands
84  RCMD_LOGIN_OK = 0x01,
87 
93 
101 
104  //RCMD_USERINFO_V5 = 0x42,
105 
108 };
109 
112 #endif // __INCLUDE_IRCBOT_REMOTE_PROTOCOL_H__
Definition: remote_protocol.h:74
Definition: remote_protocol.h:83
Definition: remote_protocol.h:91
Definition: remote_protocol.h:107
uint8 xferid
Definition: remote_protocol.h:22
Definition: remote_protocol.h:73
signed int int32
Definition: plugins.h:43
Definition: remote_protocol.h:70
Definition: remote_protocol.h:95
Definition: remote_protocol.h:49
Definition: remote_protocol.h:64
unsigned char uint8
Definition: plugins.h:48
Definition: remote_protocol.h:62
Definition: remote_protocol.h:12
Definition: remote_protocol.h:88
Definition: remote_protocol.h:69
Definition: remote_protocol.h:51
Definition: remote_protocol.h:43
Definition: remote_protocol.h:98
Definition: remote_protocol.h:76
Definition: remote_protocol.h:84
int32 peak
Definition: remote_protocol.h:16
int32 max
Definition: remote_protocol.h:17
Definition: remote_protocol.h:21
Definition: remote_protocol.h:54
Definition: remote_protocol.h:96
Definition: remote_protocol.h:60
Definition: remote_protocol.h:94
Definition: remote_protocol.h:45
Definition: remote_protocol.h:92
Definition: remote_protocol.h:80
Definition: remote_protocol.h:86
REMOTE_COMMANDS
Definition: remote_protocol.h:39
Definition: remote_protocol.h:90
Definition: remote_protocol.h:48
Definition: remote_protocol.h:50
Definition: remote_protocol.h:85
Definition: remote_protocol.h:77
uint32 offset
Definition: remote_protocol.h:23
Definition: remote_protocol.h:102
Definition: remote_protocol.h:103
Definition: remote_protocol.h:72
Definition: remote_protocol.h:58
Definition: remote_protocol.h:57
Definition: remote_protocol.h:26
uint32 size
Definition: remote_protocol.h:27
Definition: remote_protocol.h:53
Definition: remote_protocol.h:99
int32 listeners
Definition: remote_protocol.h:15
Definition: remote_protocol.h:65
Definition: remote_protocol.h:71
Definition: remote_protocol.h:44
Definition: remote_protocol.h:100
Definition: remote_protocol.h:59
Definition: remote_protocol.h:63
Definition: remote_protocol.h:66
unsigned int uint32
Definition: plugins.h:44
Definition: remote_protocol.h:52
Definition: remote_protocol.h:89
Definition: remote_protocol.h:97
Definition: remote_protocol.h:61
Definition: remote_protocol.h:75
Definition: remote_protocol.h:106
Definition: remote_protocol.h:42