|
gwenhywfar 5.12.0
|
#include "./endpoint_msgio_p.h"#include <gwenhywfar/debug.h>
Go to the source code of this file.
Macros | |
| #define | GWEN_ENDPOINT_MSGIO_BUFFERSIZE 1024 |
| #define GWEN_ENDPOINT_MSGIO_BUFFERSIZE 1024 |
Definition at line 21 of file endpoint_msgio.c.
Referenced by _readCurrentMessage().
|
static |
Definition at line 144 of file endpoint_msgio.c.
References DBG_DEBUG, DBG_INFO, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_MSG_ENDPOINT_STATE_CONNECTED, GWEN_MsgEndpoint_GetName(), GWEN_MsgEndpoint_GetSocket(), GWEN_MsgEndpoint_GetState(), GWEN_MsgEndpoint_HaveMessageToSend(), GWEN_Socket_GetSocketInt(), GWEN_SocketSet_AddSocket(), and GWEN_UNUSED.
Referenced by GWEN_MsgIoEndpoint_Extend(), GWEN_MultilayerEndpoint_new(), GWEN_TcpcEndpoint_new(), and GWEN_TcpdEndpoint_new().


|
static |
Definition at line 178 of file endpoint_msgio.c.
References _readCurrentMessage(), _writeCurrentMessage(), DBG_DEBUG, DBG_INFO, GWEN_ERROR_TIMEOUT, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_MSG_ENDPOINT_STATE_CONNECTED, GWEN_MsgEndpoint_Disconnect(), GWEN_MsgEndpoint_GetName(), GWEN_MsgEndpoint_GetSocket(), GWEN_MsgEndpoint_GetState(), and GWEN_SocketSet_HasSocket().
Referenced by GWEN_MsgIoEndpoint_Extend(), GWEN_MultilayerEndpoint_new(), GWEN_TcpcEndpoint_new(), and GWEN_TcpdEndpoint_new().


|
static |
Definition at line 322 of file endpoint_msgio.c.
References DBG_DEBUG, DBG_ERROR, DBG_INFO, GWEN_ERROR_GENERIC, GWEN_ERROR_IO, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_Msg_AddBytes(), GWEN_Msg_new(), GWEN_Msg_SetGroupId(), GWEN_MsgEndpoint_AddReceivedMessage(), GWEN_MsgEndpoint_GetCurrentlyReceivedMsg(), GWEN_MsgEndpoint_GetDefaultMessageSize(), GWEN_MsgEndpoint_GetGroupId(), GWEN_MsgEndpoint_GetName(), GWEN_MsgEndpoint_SetCurrentlyReceivedMsg(), and NULL.
Referenced by _readCurrentMessage().


|
static |
Definition at line 64 of file endpoint_msgio.c.
References GWEN_FREE_OBJECT, GWEN_MsgEndpoint_SetCheckSocketsFn(), and GWENHYWFAR_CB.

|
static |
Definition at line 290 of file endpoint_msgio.c.
References _distributeBufferContent(), DBG_DEBUG, DBG_INFO, GWEN_ENDPOINT_MSGIO_BUFFERSIZE, GWEN_ERROR_IO, GWEN_ERROR_TIMEOUT, GWEN_LOGDOMAIN, GWEN_MsgEndpoint_GetName(), and GWEN_MsgEndpoint_ReadFromSocket().
Referenced by _checkSockets().


|
static |
Definition at line 131 of file endpoint_msgio.c.
References GWEN_INHERIT_GETDATA.
Referenced by _writeCurrentMessage().

|
static |
Definition at line 116 of file endpoint_msgio.c.
References GWEN_INHERIT_GETDATA.
Referenced by _writeCurrentMessage().

|
static |
Definition at line 229 of file endpoint_msgio.c.
References _sendMsgFinish(), _sendMsgStart(), DBG_DEBUG, DBG_ERROR, DBG_INFO, GWEN_ERROR_TIMEOUT, GWEN_LOGDOMAIN, GWEN_Msg_free(), GWEN_Msg_GetBuffer(), GWEN_Msg_GetCurrentPos(), GWEN_Msg_GetRemainingBytes(), GWEN_Msg_IncCurrentPos(), GWEN_Msg_List_Del(), GWEN_MsgEndpoint_GetFirstSendMessage(), GWEN_MsgEndpoint_GetName(), and GWEN_MsgEndpoint_WriteToSocket().
Referenced by _checkSockets().


| void GWEN_MsgIoEndpoint_Extend | ( | GWEN_MSG_ENDPOINT * | ep | ) |
Create a base class for message based endpoints (which are basically all endpoints). It contains code to automatically read and write messages from/to the internal queues (see GWEN_MsgEndpoint_GetReceivedMessageList and GWEN_MsgEndpoint_GetSendMessageList).
For this class to work with every type of message protocol a callback must be set via GWEN_MsgIoEndpoint_SetGetNeededBytesFn.
Definition at line 51 of file endpoint_msgio.c.
References _addSockets(), _checkSockets(), _freeData(), GWEN_INHERIT_SETDATA, GWEN_MsgEndpoint_SetAddSocketsFn(), GWEN_MsgEndpoint_SetCheckSocketsFn(), GWEN_MsgIoEndpoint_Extend(), and GWEN_NEW_OBJECT.
Referenced by GWEN_IpcEndpoint_CreateIpcTcpClient(), GWEN_IpcEndpoint_CreateIpcTcpServiceForSocket(), and GWEN_MsgIoEndpoint_Extend().


| void GWEN_MsgIoEndpoint_SetGetNeededBytesFn | ( | GWEN_MSG_ENDPOINT * | ep, |
| GWEN_ENDPOINT_MSGIO_GETBYTESNEEDED_FN | f ) |
Definition at line 77 of file endpoint_msgio.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_IpcEndpoint_Extend().

| void GWEN_MsgIoEndpoint_SetSendMsgFinishFn | ( | GWEN_MSG_ENDPOINT * | ep, |
| GWEN_ENDPOINT_MSGIO_SENDMSGFINISH_FN | f ) |
Definition at line 103 of file endpoint_msgio.c.
References GWEN_INHERIT_GETDATA.
| void GWEN_MsgIoEndpoint_SetSendMsgStartFn | ( | GWEN_MSG_ENDPOINT * | ep, |
| GWEN_ENDPOINT_MSGIO_SENDMSGSTART_FN | f ) |
Definition at line 90 of file endpoint_msgio.c.
References GWEN_INHERIT_GETDATA.