diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-19 19:37:03 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-19 19:37:03 +0200 |
commit | 84735c23109b77e0691da208d31c374aa943b257 (patch) | |
tree | 2ff1430be30807c326c3b8274b0d0c0db7e802a2 /code/ecp/tr.h | |
parent | 3a5f92b720afcb4adac61174dbefefd420aa5319 (diff) |
fixed transport interface; risc-v transport updated to support eos sock interface
Diffstat (limited to 'code/ecp/tr.h')
-rw-r--r-- | code/ecp/tr.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/code/ecp/tr.h b/code/ecp/tr.h index c189925..e39dec0 100644 --- a/code/ecp/tr.h +++ b/code/ecp/tr.h @@ -1,9 +1,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(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); +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); |