/// <summary> /// Get server info from server. /// </summary> public void OPInfo() { if (_stream != null) { ZeusNet.SendInt(_stream, (int)OP.INFO); ZeusInfoPacket _info = new ZeusInfoPacket(); _info.Receive(_stream); Console.WriteLine("SERVER_MAJOR: " + _info.version_major); Console.WriteLine("SERVER_MINOR: " + _info.version_minor); Console.WriteLine("SERVER_TAG: " + _info.version_tag); } }
/// <summary> /// Get server information. /// </summary> /// <param name="stream">Stream to client.</param> private void OPInfo(Stream stream) { ZeusInfoPacket _info = new ZeusInfoPacket( version_major, version_minor, version_tag); _info.Send(stream); }