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