I have .NET Core console application which acts as UDP Server and UDP Client
UDP client by receiving audio packet.
UDP server, by sending each received packet.
Here's a sample code of the console app:
static UdpClient udpListener = new UdpClient();
static IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse("192.168.1.230"), 6980);
static IAudioSender audioSender = new UdpAudioSender(new IPEndPoint(IPAddress.Parse("192.168.1.230"), 65535));
static void Main(string[] args)
{
udpListener.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
udpListener.Client.Bind(endPoint);
try
{
udpListener.BeginReceive(new AsyncCallback(recv), null);
}
catch (Exception e)
{
throw e;</