public void SendError(LauncherErrorCode errorCode, string msg) { //send out notification of file transfer PacketOut Out = new PacketOut((byte)Opcodes.LCR_ERROR); Out.WriteInt32((int)errorCode); Out.WriteString(msg); SendTCPRaw(Out); }
private static bool IsError(LauncherErrorCode errorCode) { return((int)errorCode < 0); }