#include <aroarfw/byteorder.h>
#include <aroarfw/msg.h>
Go to the source code of this file.
Defines |
#define | rmsg0_msg_noop(msg) rmsg0_init((msg), RCMD_NOOP) |
| Generate a NOOP message.
|
#define | rmsg0_msg_auth(msg) rmsg0_init((msg), RCMD_AUTH) |
| Generate a dummy AUTH message.
|
#define | rmsg0_msg_quit(msg) rmsg0_init((msg), RCMD_QUIT) |
| Generate a QUIT message.
|
#define | rmsg0_is_ok(msg) (rmsg0_getcmd(msg) == RCMD_OK) |
| Test if returned message is OK.
|
#define | rmsg0_is_error(msg) (rmsg0_getcmd(msg) == RCMD_ERROR) |
| Test if returned message is ERROR.
|
#define | RPROTO_IDENTIFY_PREFIX_LEN 5 |
| Length of IDENTIFY message body prefix.
|
#define | rproto_identify_name(buf) (((char*)(buf)) + RPROTO_IDENTIFY_PREFIX_LEN) |
| Return pointer to possition behind IDENTIFY message body prefix.
|
#define | rproto_identify_prefix(buf, pid) |
| Support function to generate IDENTIFY prefix.
|
Define Documentation
#define rmsg0_is_error |
( |
|
msg |
) |
(rmsg0_getcmd(msg) == RCMD_ERROR) |
Test if returned message is ERROR.
Definition at line 44 of file basic.h.
#define rmsg0_is_ok |
( |
|
msg |
) |
(rmsg0_getcmd(msg) == RCMD_OK) |
Test if returned message is OK.
Definition at line 41 of file basic.h.
#define rmsg0_msg_auth |
( |
|
msg |
) |
rmsg0_init((msg), RCMD_AUTH) |
Generate a dummy AUTH message.
Definition at line 35 of file basic.h.
#define rmsg0_msg_noop |
( |
|
msg |
) |
rmsg0_init((msg), RCMD_NOOP) |
Generate a NOOP message.
Definition at line 32 of file basic.h.
#define rmsg0_msg_quit |
( |
|
msg |
) |
rmsg0_init((msg), RCMD_QUIT) |
Generate a QUIT message.
Definition at line 38 of file basic.h.
#define rproto_identify_name |
( |
|
buf |
) |
(((char*)(buf)) + RPROTO_IDENTIFY_PREFIX_LEN) |
Return pointer to possition behind IDENTIFY message body prefix.
Definition at line 52 of file basic.h.
#define rproto_identify_prefix |
( |
|
buf, |
|
|
|
pid | |
|
) |
| | |
Value:((void)((((unsigned char*)(buf))[0] = 1) + \
RBO_H2NB32(&(((unsigned char*)(buf))[1]), (pid))))
Support function to generate IDENTIFY prefix.
Definition at line 55 of file basic.h.
#define RPROTO_IDENTIFY_PREFIX_LEN 5 |
Length of IDENTIFY message body prefix.
Definition at line 49 of file basic.h.