public NetworkAudioPlayer(string ip, int port) { Executor.Current.Register(this); this.socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); sendToEndpoint = new IPEndPoint(IPAddress.Parse(ip), port); }