gwenhywfar 5.14.1
endpoint_ipc.h File Reference
#include <gwenhywfar/endpoint.h>
#include <time.h>
Include dependency graph for endpoint_ipc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

GWENHYWFAR_API GWEN_MSG_ENDPOINTGWEN_IpcEndpoint_CreateIpcTcpClient (const char *host, int port, const char *name, int groupId)
GWENHYWFAR_API GWEN_MSG_ENDPOINTGWEN_IpcEndpoint_CreateIpcTcpServiceForSocket (GWEN_SOCKET *sk, const char *name, int groupId)
GWENHYWFAR_API void GWEN_IpcEndpoint_Extend (GWEN_MSG_ENDPOINT *ep)

Function Documentation

◆ GWEN_IpcEndpoint_CreateIpcTcpClient()

GWENHYWFAR_API GWEN_MSG_ENDPOINT * GWEN_IpcEndpoint_CreateIpcTcpClient ( const char * host,
int port,
const char * name,
int groupId )

Create a IPC client which works over a TCP connection.

Definition at line 70 of file endpoint_ipc.c.

References GWEN_IpcEndpoint_Extend(), GWEN_MSG_ENDPOINT_IPC_NAME, GWEN_MsgIoEndpoint_Extend(), and GWEN_TcpcEndpoint_new().

Here is the call graph for this function:

◆ GWEN_IpcEndpoint_CreateIpcTcpServiceForSocket()

GWENHYWFAR_API GWEN_MSG_ENDPOINT * GWEN_IpcEndpoint_CreateIpcTcpServiceForSocket ( GWEN_SOCKET * sk,
const char * name,
int groupId )

Create a IPC service for the given socket which works over a TCP connection. The given socket is expected to be created by accepting an incoming connection (e.g. from the callback function GWEN_ENDPOINT2_TCPD_ACCEPT_FN).

Definition at line 82 of file endpoint_ipc.c.

References GWEN_IpcEndpoint_Extend(), GWEN_MSG_ENDPOINT_IPC_NAME, GWEN_MsgEndpoint_new(), GWEN_MsgEndpoint_SetSocket(), and GWEN_MsgIoEndpoint_Extend().

Here is the call graph for this function:

◆ GWEN_IpcEndpoint_Extend()

GWENHYWFAR_API void GWEN_IpcEndpoint_Extend ( GWEN_MSG_ENDPOINT * ep)

Extends the given endpoint to support GWEN IPC messages. It expects the function GWEN_MsgIoEndpoint2_Extend() to have been called beforehand.

Definition at line 42 of file endpoint_ipc.c.

References _getBytesNeededForMessage(), and GWEN_MsgIoEndpoint_SetGetNeededBytesFn().

Referenced by GWEN_IpcEndpoint_CreateIpcTcpClient(), and GWEN_IpcEndpoint_CreateIpcTcpServiceForSocket().

Here is the call graph for this function:
Here is the caller graph for this function: