HEARTBEAT

Establishes a secure connection to the authentication server and initializes the security system.

Signature

bool SendHeartbeat();

Parameters

None - This function takes no parameters.

Returns

Type: bool

Value
Description

true

Connection established successfully

false

Connection failed

Description

SendHeartbeat performs multiple critical operations:

1

Connects to Server

Establishes TCP connection.

2

Performs Handshake

Encrypted key exchange.

3

Sends HWID

Registers hardware information.

4

Receives Settings

Gets security configuration.

5

Integrity Check

Verifies application integrity (if enabled).

6

Blacklist Check

Checks for blacklisted processes/windows (if enabled).

7

Background Monitoring

Starts security monitoring threads.

This function must be called after Init() and before any other operations.

Basic Example

What Happens Behind the Scenes

Connection

  • Connects to authentication server

  • Uses encrypted channel

Timeout: 10 seconds

Errors:

  • "Socket creation failed"

  • "Connection timeout"

  • "Server unreachable"

Complete Example

Error Handling

Common Errors

Socket creation failed

Cause: Network initialization error

Solutions:

  • Check internet connection

  • Verify firewall settings

  • Ensure Windows Sockets initialized

  • Check antivirus blocking

Connection timeout

Cause: Cannot reach server

Solutions:

  • Verify server is running

  • Check SERVER_IP and SERVER_PORT

  • Test network connectivity

  • Check firewall rules

Access denied

Cause: Invalid API key

Solutions:

  • Verify API key is correct

  • Check key is for correct application

  • Ensure key is not expired

  • Copy key again from dashboard

Integrity check failed

Cause: Application file modified

Solutions:

  • Re-download original file

  • Update expected hash in dashboard

  • Disable integrity check for testing

  • Check for file corruption

Blacklisted process detected

Cause: Forbidden software running

Solutions:

  • Close blacklisted applications

  • Check dashboard blacklist settings

  • Remove from blacklist if legitimate

  • Disable blacklist for testing

When to Call SendHeartbeat

Recommended: Call once at startup

Performance Considerations

Execution Time

SendHeartbeat typically takes 100-500ms depending on:

  • Network latency

  • Server load

  • Integrity check (if enabled)

  • Blacklist scan (if enabled)

Use when: Application startup, before critical operations

Security Features Activated

After successful SendHeartbeat:

Feature
Description
Configured In

Integrity Check

SHA256 file verification

Dashboard → Applications → Integrity

Blacklist Protection

Process/window monitoring

Dashboard → Applications → Blacklist

Background Monitoring

Continuous security checks

Automatic

HWID Binding

Hardware identification

Dashboard → Applications → HWID

Web Dashboard Configuration

Enable Integrity Check
  1. Go to Dashboard → Applications

  2. Select your application

  3. Navigate to Integrity tab

  4. Enable Integrity Check

  5. Upload your executable

  6. Hash is calculated automatically

  7. Choose detection action (Close App / BSOD)

Configure Blacklist
  1. Go to Dashboard → Applications

  2. Select your application

  3. Navigate to Blacklist tab

  4. Add blacklisted processes (e.g., "cheatengine.exe")

  5. Add blacklisted windows (e.g., "Cheat Engine")

  6. Choose detection action (Close App / BSOD)

Best Practices

  • Init - Initialize library (call before SendHeartbeat)

  • ValidateKey - Validate license (call after SendHeartbeat)

Last updated