public static UdpUser ConnectTo(IPEndPoint ip) { var connection = new UdpUser(); connection.m_client.Connect(ip); return(connection); }
public static UdpUser ConnectTo(string hostname, int port) { var connection = new UdpUser(); connection.m_client.Connect(hostname, port); return(connection); }