Udp Client Multi Send : Udp Client « Network « C# / C Sharp






Udp Client Multi Send


using System;
using System.Net;
using System.Net.Sockets;
using System.Text;

public class UdpClientMultiSend
{
   public static void Main()
   {
      UdpClient sock = new UdpClient();
      IPEndPoint iep = new IPEndPoint(IPAddress.Parse("192.100.0.1"), 9050);
      byte[] data = Encoding.ASCII.GetBytes("This is a test message");
      sock.Send(data, data.Length, iep);
      sock.Close();
   }
}

           
       








Related examples in the same category

1.Test Udp Client
2.Time out Udp Client
3.Simple Udp Client
4.Odd Udp Client
5.Retry Udp ClientRetry Udp Client
6.Exception Udp ClientException Udp Client
7.Better Udp Client
8.Best Udp ClientBest Udp Client
9.Bad Udp Client
10.Binary Udp Client
11.Udp Client Sample
12.Udp Client Multi Receive