Пример #1
0
void
ccnet_async_rpc_client_free (SearpcClient *client)
{
    CcnetrpcAsyncTransportParam *priv = client->arg;

    g_free (priv->peer_id);
    g_free (priv->service);
    g_free (priv);

    searpc_client_free (client);
}
void searpc_free_client_with_pipe_transport (SearpcClient *client)
{
    ClientTransportData *data = (ClientTransportData *)(client->arg);
    SearpcNamedPipeClient *pipe_client = data->client;
#if defined(WIN32)
    CloseHandle(pipe_client->pipe_fd);
#else
    close(pipe_client->pipe_fd);
#endif
    g_free (pipe_client);
    g_free (data);
    searpc_client_free (client);
}
Пример #3
0
void
ccnet_rpc_client_free (SearpcClient *client)
{
    CcnetrpcTransportParam *priv;

    if (!client) return;

    priv = client->arg;

    g_free (priv->peer_id);
    g_free (priv->service);
    g_free (priv);

    searpc_client_free (client);
}