mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
removed node_{read,write}_single()
This commit is contained in:
parent
0c230af5b7
commit
88a6f0cf5d
3 changed files with 3 additions and 6 deletions
|
@ -36,9 +36,6 @@
|
|||
#define node_open(n) ((n)->_vt->open(n))
|
||||
#define node_close(n) ((n)->_vt->close(n))
|
||||
|
||||
#define node_read_single(n, m) ((n)->_vt->read(n, m, 1, 0, 1))
|
||||
#define node_write_single(n, m) ((n)->_vt->write(n, m, 1, 0, 1))
|
||||
|
||||
|
||||
#define REGISTER_NODE_TYPE(type, name, fnc) \
|
||||
__attribute__((constructor)) void __register_node_ ## fnc () { \
|
||||
|
|
|
@ -447,7 +447,7 @@ int hook_stats_send(struct path *p, struct hook *h, int when)
|
|||
m.data[m.length++].f = p->hist_gap_recv.last;
|
||||
|
||||
/* Send single message with statistics to destination node */
|
||||
node_write_single(private->dest, &m);
|
||||
node_write(private->dest, &m, 1, 0, 1);
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -164,8 +164,8 @@ void test_rtt() {
|
|||
m.ts.sec = sent.tv_sec;
|
||||
m.ts.nsec = sent.tv_nsec;
|
||||
|
||||
node_write_single(node, &m); /* Ping */
|
||||
node_read_single(node, &m); /* Pong */
|
||||
node_write(node, &m, 1, 0, 1); /* Ping */
|
||||
node_read(node, &m, 1, 0, 1); /* Pong */
|
||||
|
||||
clock_gettime(CLOCK_ID, &recv);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue