diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-03-15 21:37:11 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-03-15 21:37:11 +0100 |
commit | 8755ad4c0b0652f16d3505ed72ed3d8310a35c6f (patch) | |
tree | 6d7c3b93563bf64b811bb198e13ebbe7d7907e67 /code/ecp/tr.h | |
parent | b00f381106c941ea03e5ea04dc08e6c4b9e582fa (diff) |
removed *IFace from context
Diffstat (limited to 'code/ecp/tr.h')
-rw-r--r-- | code/ecp/tr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/code/ecp/tr.h b/code/ecp/tr.h new file mode 100644 index 0000000..c189925 --- /dev/null +++ b/code/ecp/tr.h @@ -0,0 +1,9 @@ +int ecp_tr_addr_eq(ECPNetAddr *addr1, ECPNetAddr *addr2); +int ecp_tr_addr_set(ECPNetAddr *addr, void *addr_s); +int ecp_tr_open(int *sock, void *addr_s); +void ecp_tr_close(int *sock); +ssize_t ecp_tr_send(int *sock, ECPBuffer *packet, size_t msg_size, ECPNetAddr *addr, unsigned char flags); +ssize_t ecp_tr_recv(int *sock, ECPBuffer *packet, ECPNetAddr *addr, int timeout); +void ecp_tr_buf_free(ECP2Buffer *b, unsigned char flags); +void ecp_tr_buf_flag_set(ECP2Buffer *b, unsigned char flags); +void ecp_tr_buf_flag_clear(ECP2Buffer *b, unsigned char flags); |