summaryrefslogtreecommitdiff
path: root/code/ecp/tr.h
blob: e39dec065873cd1d4e059b5212d2a81ff6016b9a (plain)
1
2
3
4
5
6
7
8
9
10
int ecp_tr_init(ECPContext *ctx);
int ecp_tr_addr_eq(ECPNetAddr *addr1, ECPNetAddr *addr2);
int ecp_tr_addr_set(ECPNetAddr *addr, void *addr_s);
int ecp_tr_open(ECPSocket *sock, void *addr_s);
void ecp_tr_close(ECPSocket *sock);
ssize_t ecp_tr_send(ECPSocket *sock, ECPBuffer *packet, size_t msg_size, ECPNetAddr *addr, unsigned char flags);
ssize_t ecp_tr_recv(ECPSocket *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);