Make sure start_listening_socket does everything, this will lead the way to multiple listen ports.
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
#define NET_EVENT_TIMEOUT 0x0001
|
||||
#define NET_EVENT_READ 0x0002
|
||||
#define NET_EVENT_WRITE 0x0004
|
||||
#define NET_EVENT_SOCKERROR 0x1000 /* Socket error, closed */
|
||||
#define NET_EVENT_CLOSED 0x2000 /* Socket closed */
|
||||
|
||||
struct net_connection;
|
||||
|
||||
@@ -53,7 +51,6 @@ extern void net_con_callback(struct net_connection* con, int events);
|
||||
* Close the connection.
|
||||
* This will ensure a connection is closed properly and will generate a NET_EVENT_DESTROYED event which indicates
|
||||
* that the con can safely be deleted (or set to NULL).
|
||||
* @returns 1 if the memory pointed to by con can be freed immediately, or 0 if it needs to go through the NET_EVENT_DESTROYED event.
|
||||
*/
|
||||
extern void net_con_close(struct net_connection* con);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user