summaryrefslogtreecommitdiff
path: root/ecp/src/fe310/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src/fe310/transport.c')
-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;
}