Ejemplo n.º 1
0
 public int Send(byte[] dgram, int bytes, String hostname, int port)
 {
     if (hostname == null && port == 0)
     {
         return(Send(dgram, bytes, null));
     }
     else
     {
         return(Send(dgram, bytes,
                     TcpClient.Lookup(hostname, port)));
     }
 }
Ejemplo n.º 2
0
        public UdpClient(String hostname, int port)
        {
            IPEndPoint remoteEP = TcpClient.Lookup(hostname, port);

            Initialize(null, remoteEP, remoteEP.AddressFamily);
        }
Ejemplo n.º 3
0
 public void Connect(String hostname, int port)
 {
     Connect(TcpClient.Lookup(hostname, port));
 }