コード例 #1
0
        private Thread IgnoranceClientThread()
        {
            statistics = new PeerStatistics();
            Thread t = new Thread(() => ClientWorkerThread(clientConnectionAddress, (ushort)CommunicationPort, Channels.Length, EnetClientPollTimeout, MaximumPacketSize, StatisticsCalculationInterval));

            return(t);
        }
コード例 #2
0
        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);
        }