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))); } }
public UdpClient(String hostname, int port) { IPEndPoint remoteEP = TcpClient.Lookup(hostname, port); Initialize(null, remoteEP, remoteEP.AddressFamily); }
public void Connect(String hostname, int port) { Connect(TcpClient.Lookup(hostname, port)); }