コード例 #1
0
        //-----------------------------------------------------------------------------------------
        public ServerListenerUDP(UDP_Config config)
        {
            _config = config;

            localClient  = new IPEndPoint(IPAddress.Any, _config.port);
            remoteClient = new IPEndPoint(IPAddress.Any, 0);
            _listener    = new UdpClient(localClient);
            _listener.EnableBroadcast = false;
        }
コード例 #2
0
 //-----------------------------------------------------------------------------------------
 public ClientListenerUDP(UDP_Config config)
 {
     _config    = config;
     _udpClient = new UdpClient();
 }