From 21dbc40e58a79f487d1ee34129f16e26cb6ba120 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 9 Aug 2020 02:46:08 +0200 Subject: message handling iface updated --- ecp/src/fe310/transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ecp/src') 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; } -- cgit v1.2.3