Macros
coal.h File Reference
#include "types.h"
Include dependency graph for coal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COAL_QUERY_COMMANDS   0
 
#define COAL_COMMAND   1
 
#define COAL_EVENT   2
 
#define COAL_LOGIN   3
 
#define COAL_LOGOUT   4
 
#define COAL_FILE_DOWNLOAD   5
 
#define COAL_FILE_UPLOAD   6
 
#define COAL_QUERY_PROGRAMS   7
 
#define COAL_ERROR   8
 
#define COAL_SET_CLIENT   9
 
#define COAL_UPLOAD_START   10
 
#define COAL_UPLOAD_PACKAGE   11
 
#define COAL_CRYPT   12
 
#define COAL_UPLOAD_FINISHED   13
 
#define COAL_PING   14
 
#define COAL_PONG   15
 
#define COAL_LOG   16
 
#define COAL_RETR_LOG   17
 
#define COAL_SUBSCRIBE   18
 
#define COAL_UNSUBSCRIBE   19
 
#define COAL_REG_SERVICE   20
 
#define COAL_RELOGIN   21
 
#define COAL_SERVERHELLO   22
 
#define COAL_GETOBJECT   23
 
#define COAL_SENDOBJECT   24
 
#define COAL_TIMEOUT   600
 
#define _COAL_OK   0
 
#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 }) ))
 
#define SEND_COAL(t, cmd, o, cid, a)   send_message(coal_compose(t, cmd, o, cid, a ))
 
#define HL_CMD   0
 
#define HL_ARGS   1
 
#define HL_REST   2
 
#define COALLINE_TID   0
 
#define COALLINE_COMMAND   1
 
#define COALLINE_OBJECT   2
 
#define COALLINE_NAMESPACE   3
 
#define COALLINE_SERVER   4
 
#define INT2BYTES(arg)
 
#define COMMAND_BEGIN_MASK   255
 
#define COMMAND_RAW   127
 
#define USE_LAST_TID   -1
 
#define LONG_INTEGER   ((int)(1<<31)>0)
 
#define COAL_TRANSFER_RCV   1
 
#define COAL_TRANSFER_SEND   2
 
#define COAL_TRANSFER_NONE   0
 
#define CLIENT_CLASS_STEAM   "steam"
 
#define CLIENT_CLASS_FTP   "ftp"
 
#define CLIENT_CLASS_HTTP   "http"
 
#define CLIENT_CLASS_SERVER   "peer"
 
#define CRYPT_KEY   512
 
#define CRYPT_WSIZE   (CRYPT_KEY/16)
 
#define CRYPT_RSIZE   (CRYPT_KEY/8)
 
#define COAL_VERSION   "1.0"
 

Macro Definition Documentation

#define _COAL_OK   0

Definition at line 54 of file coal.h.

#define CLIENT_CLASS_FTP   "ftp"

Definition at line 86 of file coal.h.

#define CLIENT_CLASS_HTTP   "http"

Definition at line 87 of file coal.h.

#define CLIENT_CLASS_SERVER   "peer"

Definition at line 88 of file coal.h.

#define CLIENT_CLASS_STEAM   "steam"

Definition at line 85 of file coal.h.

#define COAL_COMMAND   1

Definition at line 27 of file coal.h.

#define COAL_CRYPT   12

Definition at line 38 of file coal.h.

#define COAL_ERROR   8

Definition at line 34 of file coal.h.

#define COAL_EVENT   2

Definition at line 28 of file coal.h.

#define COAL_FILE_DOWNLOAD   5

Definition at line 31 of file coal.h.

#define COAL_FILE_UPLOAD   6

Definition at line 32 of file coal.h.

#define COAL_GETOBJECT   23

Definition at line 49 of file coal.h.

#define COAL_LOG   16

Definition at line 42 of file coal.h.

#define COAL_LOGIN   3

Definition at line 29 of file coal.h.

#define COAL_LOGOUT   4

Definition at line 30 of file coal.h.

#define COAL_PING   14

Definition at line 40 of file coal.h.

#define COAL_PONG   15

Definition at line 41 of file coal.h.

#define COAL_QUERY_COMMANDS   0

Definition at line 26 of file coal.h.

#define COAL_QUERY_PROGRAMS   7

Definition at line 33 of file coal.h.

#define COAL_REG_SERVICE   20

Definition at line 46 of file coal.h.

#define COAL_RELOGIN   21

Definition at line 47 of file coal.h.

#define COAL_RETR_LOG   17

Definition at line 43 of file coal.h.

#define COAL_SENDOBJECT   24

Definition at line 50 of file coal.h.

#define COAL_SERVERHELLO   22

Definition at line 48 of file coal.h.

#define COAL_SET_CLIENT   9

Definition at line 35 of file coal.h.

#define COAL_SUBSCRIBE   18

Definition at line 44 of file coal.h.

#define COAL_TIMEOUT   600

Definition at line 52 of file coal.h.

#define COAL_TRANSFER_NONE   0

Definition at line 83 of file coal.h.

#define COAL_TRANSFER_RCV   1

Definition at line 81 of file coal.h.

#define COAL_TRANSFER_SEND   2

Definition at line 82 of file coal.h.

#define COAL_UNSUBSCRIBE   19

Definition at line 45 of file coal.h.

#define COAL_UPLOAD_FINISHED   13

Definition at line 39 of file coal.h.

#define COAL_UPLOAD_PACKAGE   11

Definition at line 37 of file coal.h.

#define COAL_UPLOAD_START   10

Definition at line 36 of file coal.h.

#define COAL_VERSION   "1.0"

Definition at line 94 of file coal.h.

#define COALLINE_COMMAND   1

Definition at line 64 of file coal.h.

#define COALLINE_NAMESPACE   3

Definition at line 66 of file coal.h.

#define COALLINE_OBJECT   2

Definition at line 65 of file coal.h.

#define COALLINE_SERVER   4

Definition at line 67 of file coal.h.

#define COALLINE_TID   0

Definition at line 63 of file coal.h.

#define COMMAND_BEGIN_MASK   255

Definition at line 74 of file coal.h.

#define COMMAND_RAW   127

Definition at line 75 of file coal.h.

#define CRYPT_KEY   512

Definition at line 90 of file coal.h.

#define CRYPT_RSIZE   (CRYPT_KEY/8)

Definition at line 92 of file coal.h.

#define CRYPT_WSIZE   (CRYPT_KEY/16)

Definition at line 91 of file coal.h.

#define HL_ARGS   1

Definition at line 60 of file coal.h.

#define HL_CMD   0

Definition at line 59 of file coal.h.

#define HL_REST   2

Definition at line 61 of file coal.h.

#define INT2BYTES (   arg)
Value:
str[1] = (arg & ( 255 << 24));\
str[2] = (arg & ( 255 << 16));\
str[3] = (arg & ( 255 << 8));\
str[4] = (arg & ( 255 ))

Definition at line 69 of file coal.h.

#define LONG_INTEGER   ((int)(1<<31)>0)

Definition at line 79 of file coal.h.

#define SEND_COAL (   t,
  cmd,
  o,
  cid,
 
)    send_message(coal_compose(t, cmd, o, cid, a ))

Definition at line 57 of file coal.h.

#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 }) ))

Definition at line 56 of file coal.h.

#define USE_LAST_TID   -1

Definition at line 77 of file coal.h.