Added SetReuseAddress() method to WebSocketServer

master
Jonas Hovgaard 11 years ago
parent 11b26040b8
commit e0e21a9e6c

@ -841,6 +841,14 @@ namespace WebSocketSharp.Server
_state = ServerState.Stop;
}
/// <summary>
/// Allows the server to be bound to an address that is already in use.
/// </summary>
public void SetReuseAddress()
{
_listener.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1);
}
#endregion
}
}

Loading…
Cancel
Save