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;
}