diff --git a/src/sp/transport/socket/sockfd.c b/src/sp/transport/socket/sockfd.c index f7c283fa8..98a01d1fd 100644 --- a/src/sp/transport/socket/sockfd.c +++ b/src/sp/transport/socket/sockfd.c @@ -896,8 +896,8 @@ sfd_tran_ep_set_recvmaxsz(void *arg, const void *v, size_t sz, nni_opt_type t) static int sfd_tran_ep_bind(void *arg) { - NNI_ARG_UNUSED(arg); - return (0); + sfd_tran_ep *ep = arg; + return (nng_stream_listener_listen(ep->listener)); } static void @@ -988,7 +988,7 @@ sfd_tran_listener_setopt( static nni_sp_dialer_ops sfd_tran_dialer_ops = { .d_init = sfd_tran_dialer_init, - .d_fini = sfd_tran_ep_fini, + .d_fini = NULL, .d_connect = NULL, .d_close = NULL, .d_getopt = NULL,