private Thread IgnoranceClientThread() { statistics = new PeerStatistics(); Thread t = new Thread(() => ClientWorkerThread(clientConnectionAddress, (ushort)CommunicationPort, Channels.Length, EnetClientPollTimeout, MaximumPacketSize, StatisticsCalculationInterval)); return(t); }
private Thread IgnoranceClientThread() { statistics = new PeerStatistics(); ThreadBootstrapStruct threadBootstrap = new ThreadBootstrapStruct { hostAddress = clientConnectionAddress, port = (ushort)CommunicationPort, maxChannels = Channels.Length, maxPacketSize = MaxPacketSizeInKb * 1024, threadPumpTimeout = EnetPollTimeout, pingUpdateInterval = StatisticsCalculationInterval, }; Thread t = new Thread(() => ClientWorkerThread(threadBootstrap)); return(t); }