RPC Server Support
lgo_RpcHeartbeatServer()
Called periodically by the client to maintain the connection to the server.
#include "laygo.h"
LResult lgo_RpcHeartbeatServer
(
LServerId serverId
);
| serverId | server to heartbeat to |
lgo_RpcHeartbeatServer() is called periodically by the client to maintain the connection to the server.
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:
LServerId serverId
if ((serverId = lgo_RpcConnectServer(server)) >= 0)
{
LResult result = lgo_RpcHeartbeatServer(serverId);
lgo_RpcDisconnectServer(serverId);
return(result);
}