forb_syncobj_signal(&port->hello);
pthread_join(port->receiver_thread.pthread_id, &thread_return);
+#ifndef CONFIG_FORB_PROTO_INET_DEFAULT
pthread_join(port->discovery_thread.pthread_id, &thread_return);
+#endif
if (port->desc.proto->port_destroy) {
port->desc.proto->port_destroy(port);
#include <sys/types.h>
#include <ul_log.h>
#include <unistd.h>
+#include <forb/config.h>
/**
* @file proto_inet.c
port_priv->listen_socket, &ev);
if (ret)
goto err_close_epoll;
-
+
+#ifndef CONFIG_FORB_PROTO_INET_DEFAULT
ev.events = EPOLLIN | EPOLLET;
ev.data.fd = port_priv->udp_socket;
ret = epoll_ctl(port_priv->epoll_fd, EPOLL_CTL_ADD,
port_priv->udp_socket, &ev);
if (ret)
goto err_close_epoll;
+#endif
port_desc->proto = &proto_inet;
port_desc->proto_priv = port_priv;