summaryrefslogtreecommitdiff
path: root/ecp
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-09 02:46:08 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-09 02:46:08 +0200
commit21dbc40e58a79f487d1ee34129f16e26cb6ba120 (patch)
tree8e45719fce0029090792fac08ba42ac2a0371f0e /ecp
parent9dd66a7dd0c5ba39f9b602daafea88a00cef75e8 (diff)
message handling iface updated
Diffstat (limited to 'ecp')
-rw-r--r--ecp/src/fe310/transport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ecp/src/fe310/transport.c b/ecp/src/fe310/transport.c
index 4f50049..777a956 100644
--- a/ecp/src/fe310/transport.c
+++ b/ecp/src/fe310/transport.c
@@ -60,12 +60,11 @@ int ecp_tr_addr_set(ECPNetAddr *addr, void *addr_s) {
}
int ecp_tr_open(ECPSocket *sock, void *addr_s) {
- sock->sock = eos_sock_open_udp();
+ sock->sock = eos_sock_open_udp(packet_handler);
if (sock->sock < 0) {
sock->sock = 0;
return ECP_ERR_SEND;
}
- eos_sock_set_handler(sock->sock, packet_handler);
_ecp_tr_sock = sock;
return ECP_OK;
}