internal Server(IPEndPoint address, EngineType type, bool?isObsolete, int sendTimeOut, int receiveTimeOut) { ServerEndPoint = address; Retries = 3; socket = new UdpQuery(address, sendTimeOut, receiveTimeOut); IsDisposed = false; Type = type; if (isObsolete == null) { try { if (socket.GetResponse(QueryMsg.ObsoleteInfoQuery, Type)[0] == 0x6D) { IsObsolete = true; } } catch (SocketException e) { if (e.ErrorCode == 10060) { IsObsolete = false; } } } else { IsObsolete = isObsolete == true; } }
internal Server(IPEndPoint address, EngineType type, bool? isObsolete, int sendTimeOut, int receiveTimeOut) { ServerEndPoint = address; Retries = 3; socket = new UdpQuery(address, sendTimeOut, receiveTimeOut); IsDisposed = false; Type = type; if (isObsolete == null) { try { if (socket.GetResponse(QueryMsg.ObsoleteInfoQuery, Type)[0] == 0x6D) IsObsolete = true; } catch (SocketException e) { if (e.ErrorCode == 10060) IsObsolete = false; } } else IsObsolete = isObsolete == true; }
private RconGoldSource(IPEndPoint address) { socket = new UdpQuery(address, 3000, 3000); }
private RconGoldSource(IPEndPoint address) { socket = new UdpQuery(address, 3000, 3000); }