-set socket options before “socket.bind” -listen for incoming SOCK_STREAM connections only before “socket.accept” resolves ubuntu errors.

Fork of NSAPITests by NetworkSocketAPI

Revision:
6:d847da0dbf4f
Parent:
3:8b595ee6219d
Child:
10:0d938ec9100c
--- a/NSAPITests.h	Thu Mar 03 13:08:27 2016 -0600
+++ b/NSAPITests.h	Thu Mar 03 13:10:13 2016 -0600
@@ -19,6 +19,6 @@
 
 #include "NetworkInterface.h"
 
-int nsapi_tests(const char *name, NetworkInterface *iface, const char *test_address, uint16_t test_tcp_port, uint16_t test_udp_port);
+int nsapi_tests(const char *name, NetworkInterface *iface, const char *test_address, uint16_t test_port);
 
 #endif