Added a safe connection cleanup procedure for when a connection goes

down while it may be attempted to be used.
This commit is contained in:
Jan Vidar Krey
2010-01-21 01:12:57 +01:00
parent f645811f37
commit 9f5aaf0148
7 changed files with 120 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ extern void net_con_callback(struct net_connection* con, int events);
* 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 int net_con_close(struct net_connection* con);
extern void net_con_close(struct net_connection* con);
/**
* Send data