public NetworkAudioPlayer ( string ip, int port ) : System | ||
ip | string | |
port | int | |
return | System |
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);
}