Go to the documentation of this file. 26 #define COAL_QUERY_COMMANDS 0 27 #define COAL_COMMAND 1 31 #define COAL_FILE_DOWNLOAD 5 32 #define COAL_FILE_UPLOAD 6 33 #define COAL_QUERY_PROGRAMS 7 35 #define COAL_SET_CLIENT 9 36 #define COAL_UPLOAD_START 10 37 #define COAL_UPLOAD_PACKAGE 11 39 #define COAL_UPLOAD_FINISHED 13 43 #define COAL_RETR_LOG 17 44 #define COAL_SUBSCRIBE 18 45 #define COAL_UNSUBSCRIBE 19 46 #define COAL_REG_SERVICE 20 47 #define COAL_RELOGIN 21 48 #define COAL_SERVERHELLO 22 49 #define COAL_GETOBJECT 23 50 #define COAL_SENDOBJECT 24 52 #define COAL_TIMEOUT 600 // 10 minutes 56 #define SEND_ERROR(e, d, t, oid, cid, cmd, args, bt) send_message(coal_compose(t, COAL_ERROR, oid,cid, ({ e, d, cmd, args, bt }) )) 57 #define SEND_COAL(t, cmd, o, cid, a) send_message(coal_compose(t, cmd, o, cid, a )) 63 #define COALLINE_TID 0 64 #define COALLINE_COMMAND 1 65 #define COALLINE_OBJECT 2 66 #define COALLINE_NAMESPACE 3 67 #define COALLINE_SERVER 4 69 #define INT2BYTES(arg) str[1] = (arg & ( 255 << 24));\ 70 str[2] = (arg & ( 255 << 16));\ 71 str[3] = (arg & ( 255 << 8));\ 72 str[4] = (arg & ( 255 )) 74 #define COMMAND_BEGIN_MASK 255 75 #define COMMAND_RAW 127 77 #define USE_LAST_TID -1 79 #define LONG_INTEGER ((int)(1<<31)>0) 81 #define COAL_TRANSFER_RCV 1 82 #define COAL_TRANSFER_SEND 2 83 #define COAL_TRANSFER_NONE 0 85 #define CLIENT_CLASS_STEAM "steam" 86 #define CLIENT_CLASS_FTP "ftp" 87 #define CLIENT_CLASS_HTTP "http" 88 #define CLIENT_CLASS_SERVER "peer" 91 #define CRYPT_WSIZE (CRYPT_KEY/16) 92 #define CRYPT_RSIZE (CRYPT_KEY/8) 94 #define COAL_VERSION "1.0"