public UDPServer(int port) { receivedData = new byte[1024]; sendData = new byte[1024]; ipep = new IPEndPoint(IPAddress.Any, port); newsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); newsock.Bind(ipep); }