public Connection(CommonUdp udp) { this.EncryptionKey = ""; this.RemoteEP = null; this.LastSentPacket = 0u; this.LastReceivedPacket = 0u; this.LastSentPacketR = 1u; this.LastReceivedPacketR = 0u; this.LastReceivedPacketSeq = 0u; this.Authed = false; this.Server = false; this.m_Parent = udp; this.TimeoutTime = DateTime.Now.AddSeconds((double)UdpConsts.CONNECTION_TIMEOUT); this.CompoundCommand = null; this.m_RequestID = ""; this.RQueue = new ReliableQueue(); }
/// <summary> /// Initialises the connection object, setting variables to defaults. /// </summary> /// <param name="udp">Reference to the main core engine that created the connection.</param> public Connection(CommonUdp udp) { EncryptionKey = ""; RemoteEP = null; LastSentPacket = 0; LastReceivedPacket = 0; LastSentPacketR = 1; LastReceivedPacketR = 0; LastReceivedPacketSeq = 0; Authed = false; //Either (server) client is authed or (client) is authed with server Server = false; //Connection is a server connection m_Parent = udp; TimeoutTime = DateTime.Now.AddSeconds(UdpConsts.CONNECTION_TIMEOUT); CompoundCommand = null; m_RequestID = ""; RQueue = new ReliableQueue(); }
public ConnectionList(CommonUdp udp) { m_Parent = udp; }
public ConnTimeout(CommonUdp parent) { this.m_Parent = parent; }
public ConnTimeout(CommonUdp parent) { m_Parent = parent; }