/// <summary> /// Pings the specified Source server to retreive information about it such as the server name, max players, current /// number of players, etc. /// </summary> /// <param name="ip">The string containing the IP address or hostname of the server</param> /// <param name="port">The port of the server</param> /// <returns>Information about the server or throws an SSQLServerException if it could not be retreived</returns> public ServerInfo Server(string ip, int port) { IPEndPoint endPoint = EndPointUtils.GetIpEndPointFromHostName(ip, port, true); return(Server(endPoint)); }
/// <summary> /// Retreives information about the players on a Source server /// </summary> /// <param name="ip">The string containing the IP address or hostname of the server</param> /// <param name="port">The port of the server</param> /// <returns> /// A List of PlayerInfo or throws an SSQLServerException if the server could not be reached /// </returns> public List <PlayerInfo> Players(string ip, int port) { IPEndPoint endPoint = EndPointUtils.GetIpEndPointFromHostName(ip, port, true); return(Players(endPoint)); }