Example #1
0
        public UDPSession NewClientSession(ConnectionKey parNewKey, bool parIsBrodcast)
        {
            UDPSession udp = new UDPSession(parNewKey, adapterIP, parIsBrodcast, client);

            udp.ConnectionClosedEvent += HandleChildConnectionClosed;

            lock (connectionSentry)
            {
                connections.Add(udp);
            }

            return(udp);
        }