コード例 #1
0
        //Int32 lastPayloadIDReceived;

        public CdpServerDatagramHandler(CdpTransmitter transmitter,
                                        ICdpServerHandler serverHandler, ICdpTimeout timeout)
        {
            this.transmitter   = transmitter;
            this.serverHandler = serverHandler;
            this.timeout       = timeout;

            //this.lastPayloadIDReceived = Cdp.MaxPayloadID;
        }
コード例 #2
0
            public Boolean NewConnection(CdpTransmitter transmitter, out ICdpServerHandler handler, out int maxSendBeforeAck)
            {
                connectionCount++;

                Console.WriteLine("[Server] New Connection from '{0}' ({1} connections)", transmitter.RemoteEndPoint, connectionCount);

                handler          = new CdpServerHandlerForTests(transmitter);
                maxSendBeforeAck = 0xFF;
                return(false);
            }
コード例 #3
0
 public bool NewConnection(CdpTransmitter transmitter, out ICdpServerHandler handler, out int maxSendBeforeAck)
 {
     handler          = this;
     maxSendBeforeAck = 32;
     return(false);
 }