Пример #1
0
        public AresUdpSocket(IFormatter formatter)
        {
            receiveEp = new IPEndPoint(IPAddress.Any, 0);
            Formatter = formatter;

            this.socket  = SocketManager.CreateUdp(AddressFamily.InterNetwork);
            this.monitor = new IOMonitor();
        }
Пример #2
0
        public void Bind(IPEndPoint ep)
        {
            if (socket == null)
            {
                socket = SocketManager.CreateUdp(AddressFamily.InterNetwork);
            }

            monitor.Start();
            socket.Bind(ep);
        }