//----------------------------------------------------------------------------------------- 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; }
//----------------------------------------------------------------------------------------- public ClientListenerUDP(UDP_Config config) { _config = config; _udpClient = new UdpClient(); }