Added SetReuseAddress() method to WebSocketServer
This commit is contained in:
parent
11b26040b8
commit
e0e21a9e6c
@ -841,6 +841,14 @@ namespace WebSocketSharp.Server
|
|||||||
_state = ServerState.Stop;
|
_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
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user