/// <summary> /// Creates a new instance of a NetChannel. /// </summary> /// <param name="manager">The server this channel belongs to.</param> /// <param name="connection">The raw NetConnection to the remote peer.</param> internal NetChannel(NetManager manager, NetConnection connection, NetSessionId sessionId) { _manager = manager; _connection = connection; SessionId = sessionId; }
/// <summary> /// Constructs a new instance. /// </summary> /// <param name="sessionId">The session ID of the incoming connection.</param> public NetConnectingArgs(NetSessionId sessionId, IPEndPoint ip) { SessionId = sessionId; IP = ip; }