Revision 458b1d7e include/net_helper.h

View differences:

include/net_helper.h
9 9
struct nodeID *create_node(const char *IPaddr, int port);
10 10
void nodeid_free(struct nodeID *s);
11 11
struct nodeID *net_helper_init(const char *IPaddr, int port);
12
void bind_msg_type (uint8_t msgtype);
12 13
int send_to_peer(const struct nodeID *from, struct nodeID *to, const uint8_t *buffer_ptr, int buffer_size);
13 14
int recv_from_peer(const struct nodeID *local, struct nodeID **remote, uint8_t *buffer_ptr, int buffer_size);
14 15

  

Also available in: Unified diff