summaryrefslogtreecommitdiff
path: root/ecp/src/tr.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
commit5cd610a07468137066ea4daa5176c3e7045113b0 (patch)
treea6a5b572572f8f37ec2cb87332fa46e9bcc53aa7 /ecp/src/tr.h
parent2473a7d5c51806ab8651cd3c4e07a15b62084eb5 (diff)
ecp moved to root; fixed utils and tests
Diffstat (limited to 'ecp/src/tr.h')
-rw-r--r--ecp/src/tr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ecp/src/tr.h b/ecp/src/tr.h
new file mode 100644
index 0000000..116590b
--- /dev/null
+++ b/ecp/src/tr.h
@@ -0,0 +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(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_release(ECPBuffer *packet, unsigned char more);
+void ecp_tr_flag_set(unsigned char flags);
+void ecp_tr_flag_clear(unsigned char flags);