gwenhywfar 5.12.0
endpoint_multilayer.h File Reference
#include <gwenhywfar/endpoint.h>
Include dependency graph for endpoint_multilayer.h:

Go to the source code of this file.

Typedefs

typedef void(* GWEN_ENDPOINT_MULTILAYER_CHECKSOCKETS_FN) (GWEN_MSG_ENDPOINT *ep, GWEN_MSG_ENDPOINT *epChild, GWEN_SOCKETSET *readSet, GWEN_SOCKETSET *writeSet, GWEN_SOCKETSET *xSet)
typedef int(* GWEN_ENDPOINT_MULTILAYER_STARTCONNECT_FN) (GWEN_MSG_ENDPOINT *ep, GWEN_MSG_ENDPOINT *epChild)

Functions

GWENHYWFAR_API int GWEN_MultilayerEndpoint_GetConnectTimeoutInSeconds (const GWEN_MSG_ENDPOINT *ep)
GWENHYWFAR_API int GWEN_MultilayerEndpoint_GetReconnectTimeInSeconds (const GWEN_MSG_ENDPOINT *ep)
GWENHYWFAR_API int GWEN_MultilayerEndpoint_GetStage (const GWEN_MSG_ENDPOINT *ep)
GWENHYWFAR_API GWEN_MSG_ENDPOINTGWEN_MultilayerEndpoint_new (const char *name, int groupId)
GWENHYWFAR_API GWEN_ENDPOINT_MULTILAYER_CHECKSOCKETS_FN GWEN_MultilayerEndpoint_SetCheckSocketsFn (GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MULTILAYER_CHECKSOCKETS_FN fn)
GWENHYWFAR_API void GWEN_MultilayerEndpoint_SetConnectTimeoutInSeconds (GWEN_MSG_ENDPOINT *ep, int i)
GWENHYWFAR_API void GWEN_MultilayerEndpoint_SetReconnectTimeInSeconds (GWEN_MSG_ENDPOINT *ep, int i)
GWENHYWFAR_API void GWEN_MultilayerEndpoint_SetStage (GWEN_MSG_ENDPOINT *ep, int i)
GWENHYWFAR_API GWEN_ENDPOINT_MULTILAYER_STARTCONNECT_FN GWEN_MultilayerEndpoint_SetStartConnectFn (GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MULTILAYER_STARTCONNECT_FN fn)
GWENHYWFAR_API int GWEN_MultilayerEndpoint_StartConnect (GWEN_MSG_ENDPOINT *ep)

Typedef Documentation

◆ GWEN_ENDPOINT_MULTILAYER_CHECKSOCKETS_FN

typedef void(* GWEN_ENDPOINT_MULTILAYER_CHECKSOCKETS_FN) (GWEN_MSG_ENDPOINT *ep, GWEN_MSG_ENDPOINT *epChild, GWEN_SOCKETSET *readSet, GWEN_SOCKETSET *writeSet, GWEN_SOCKETSET *xSet)

Called from GWEN_MsgEndpoint_CheckSockets when status is GWEN_MSG_ENDPOINT_STATE_CONNECTING.

Definition at line 26 of file endpoint_multilayer.h.

◆ GWEN_ENDPOINT_MULTILAYER_STARTCONNECT_FN

typedef int(* GWEN_ENDPOINT_MULTILAYER_STARTCONNECT_FN) (GWEN_MSG_ENDPOINT *ep, GWEN_MSG_ENDPOINT *epChild)

Definition at line 21 of file endpoint_multilayer.h.

Function Documentation

◆ GWEN_MultilayerEndpoint_GetConnectTimeoutInSeconds()

GWENHYWFAR_API int GWEN_MultilayerEndpoint_GetConnectTimeoutInSeconds ( const GWEN_MSG_ENDPOINT * ep)

Definition at line 120 of file endpoint_multilayer.c.

References GWEN_ENDPOINT_MULTILAYER_DEFAULT_CONNECT_TIMEOUT, and GWEN_INHERIT_GETDATA.

Referenced by _addSocketsWhenConnecting().

Here is the caller graph for this function:

◆ GWEN_MultilayerEndpoint_GetReconnectTimeInSeconds()

GWENHYWFAR_API int GWEN_MultilayerEndpoint_GetReconnectTimeInSeconds ( const GWEN_MSG_ENDPOINT * ep)

Definition at line 93 of file endpoint_multilayer.c.

References GWEN_ENDPOINT_MULTILAYER_DEFAULT_RECONNECT_TIME, and GWEN_INHERIT_GETDATA.

Referenced by _checkForNeedToReconnect().

Here is the caller graph for this function:

◆ GWEN_MultilayerEndpoint_GetStage()

GWENHYWFAR_API int GWEN_MultilayerEndpoint_GetStage ( const GWEN_MSG_ENDPOINT * ep)

Definition at line 147 of file endpoint_multilayer.c.

References GWEN_INHERIT_GETDATA.

◆ GWEN_MultilayerEndpoint_new()

◆ GWEN_MultilayerEndpoint_SetCheckSocketsFn()

Definition at line 195 of file endpoint_multilayer.c.

References GWEN_INHERIT_GETDATA, and NULL.

◆ GWEN_MultilayerEndpoint_SetConnectTimeoutInSeconds()

GWENHYWFAR_API void GWEN_MultilayerEndpoint_SetConnectTimeoutInSeconds ( GWEN_MSG_ENDPOINT * ep,
int i )

Definition at line 134 of file endpoint_multilayer.c.

References GWEN_INHERIT_GETDATA.

◆ GWEN_MultilayerEndpoint_SetReconnectTimeInSeconds()

GWENHYWFAR_API void GWEN_MultilayerEndpoint_SetReconnectTimeInSeconds ( GWEN_MSG_ENDPOINT * ep,
int i )

Definition at line 107 of file endpoint_multilayer.c.

References GWEN_INHERIT_GETDATA.

◆ GWEN_MultilayerEndpoint_SetStage()

GWENHYWFAR_API void GWEN_MultilayerEndpoint_SetStage ( GWEN_MSG_ENDPOINT * ep,
int i )

Definition at line 161 of file endpoint_multilayer.c.

References GWEN_INHERIT_GETDATA.

◆ GWEN_MultilayerEndpoint_SetStartConnectFn()

Definition at line 174 of file endpoint_multilayer.c.

References GWEN_INHERIT_GETDATA, and NULL.

◆ GWEN_MultilayerEndpoint_StartConnect()

GWENHYWFAR_API int GWEN_MultilayerEndpoint_StartConnect ( GWEN_MSG_ENDPOINT * ep)