* net_socket_module_info::acquire_socket() now returns whether or not the
socket could be acquired, ie. when its reference count is 0, it cannot be acquired anymore. This requires the protocol to do proper locking, though. * The TCP EndpointManager now checks the return value of acquire_socket(), and only returns the endpoint if that succeeded. * This fixes bug #2197. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30363 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -71,7 +71,7 @@ struct net_socket_module_info {
|
||||
struct net_stat *stat);
|
||||
|
||||
// connections
|
||||
void (*acquire_socket)(net_socket *socket);
|
||||
bool (*acquire_socket)(net_socket *socket);
|
||||
bool (*release_socket)(net_socket *socket);
|
||||
|
||||
status_t (*spawn_pending_socket)(net_socket *parent,
|
||||
|
||||
Reference in New Issue
Block a user