RPC Server Support

RPC Heartbeat Server

lgo_RpcHeartbeatServer()

Called periodically by the client to maintain the connection to the server.

Syntax
#include "laygo.h"

LResult lgo_RpcHeartbeatServer
    (
        LServerId    serverId
    );
serverIdserver to heartbeat to
Description

lgo_RpcHeartbeatServer() is called periodically by the client to maintain the connection to the server.

Return Values

If successful, lgo_RpcHeartbeatServer() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

lgo_HeartbeatServer()

Example
LServerId    serverId

if ((serverId = lgo_RpcConnectServer(server)) >= 0)
{
    LResult  result = lgo_RpcHeartbeatServer(serverId);

    lgo_RpcDisconnectServer(serverId);

    return(result);
}