//Int32 lastPayloadIDReceived; public CdpServerDatagramHandler(CdpTransmitter transmitter, ICdpServerHandler serverHandler, ICdpTimeout timeout) { this.transmitter = transmitter; this.serverHandler = serverHandler; this.timeout = timeout; //this.lastPayloadIDReceived = Cdp.MaxPayloadID; }
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); }
public bool NewConnection(CdpTransmitter transmitter, out ICdpServerHandler handler, out int maxSendBeforeAck) { handler = this; maxSendBeforeAck = 32; return(false); }