BattleNET.BattlEyeClient.SendLoginPacket C# (CSharp) Method

SendLoginPacket() private method

private SendLoginPacket ( string command ) : BattlEyeCommandResult
command string
return BattlEyeCommandResult
        private BattlEyeCommandResult SendLoginPacket(string command)
        {
            try
            {
                if (!socket.Connected)
                    return BattlEyeCommandResult.NotConnected;

                byte[] packet = ConstructPacket(BattlEyePacketType.Login, 0, command);
                socket.Send(packet);

                packetSent = DateTime.Now;
            }
            catch
            {
                return BattlEyeCommandResult.Error;
            }

            return BattlEyeCommandResult.Success;
        }