Example #1
0
        public void Send(string message)
        {
            var datagram = Encoding.ASCII.GetBytes(message);

            Client.Send(datagram, datagram.Length);
        }
Example #2
0
 static void Main(string[] args)
 {
     var client = new Client();
     client.Start();
     client.Send(null);
 }
Example #3
0
        public void Reply(string message, IPEndPoint endpoint)
        {
            var datagram = Encoding.ASCII.GetBytes(message);

            Client.Send(datagram, datagram.Length, endpoint);
        }