Core/Network: Changed AsyncAcceptor to have a start method that returns false if it can't start the network.
Core/Logging: Cleaned up network logging.
This commit is contained in:
@@ -27,7 +27,12 @@ namespace Framework.Networking
|
||||
{
|
||||
Contract.Assert(threadCount > 0);
|
||||
|
||||
Acceptor = new AsyncAcceptor(bindIp, port);
|
||||
Acceptor = new AsyncAcceptor();
|
||||
if (!Acceptor.Start(bindIp, port))
|
||||
{
|
||||
Log.outError(LogFilter.Network, "StartNetwork failed to Start AsyncAcceptor");
|
||||
return false;
|
||||
}
|
||||
|
||||
_threadCount = threadCount;
|
||||
_threads = new NetworkThread<TSocketType>[GetNetworkThreadCount()];
|
||||
|
||||
Reference in New Issue
Block a user