#include "iolayer_p.h"
#include "iorequest_l.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/gui.h>
#include <gwenhywfar/iomanager.h>
#include <assert.h>
Go to the source code of this file.
int GWEN_Io_Layer__DisconnectRecursively | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER * | stopAtLayer, | |||
uint32_t | flags, | |||
uint32_t | guiid, | |||
int | msecs | |||
) |
Definition at line 543 of file iolayer.c.
References GWEN_Io_Layer_Disconnect(), and GWEN_Io_Layer_StatusDisconnected.
Referenced by GWEN_Io_Layer_DisconnectRecursively().
int GWEN_Io_Layer__WaitForRequest | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_REQUEST * | r, | |||
int | msecs, | |||
int | deleteRequest | |||
) |
Definition at line 385 of file iolayer.c.
References DBG_INFO, GWEN_ERROR_EOF, GWEN_Io_Layer_AddRequest(), GWEN_Io_Layer_DelRequest(), GWEN_Io_Manager_WaitForRequest(), GWEN_Io_Request_free(), GWEN_Io_Request_GetBufferPos(), GWEN_Io_Request_GetResultCode(), GWEN_Io_Request_GetStatus(), GWEN_Io_Request_GetType(), GWEN_Io_Request_StatusEnqueued, GWEN_Io_Request_StatusFinished, GWEN_Io_Request_TypeRead, and GWEN_LOGDOMAIN.
Referenced by GWEN_Io_Layer_Connect(), GWEN_Io_Layer_Disconnect(), GWEN_Io_Layer_ReadBytes(), GWEN_Io_Layer_ReadPacket(), GWEN_Io_Layer_ReadPacketToBuffer(), GWEN_Io_Layer_WriteBytes(), GWEN_Io_Layer_WriteChar(), and GWEN_Io_Layer_WriteString().
void GWEN_Io_Layer_AddIncomingLayer | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER * | newIo | |||
) |
Definition at line 114 of file iolayer.c.
Referenced by GWEN_Io_LayerBuffered_WorkOnReadRequest(), GWEN_Io_LayerBuffered_WorkOnRequests(), GWEN_Io_LayerHttp_WorkOnRequests(), GWEN_Io_LayerPackets_WorkOnRequests(), GWEN_Io_LayerSocket_CheckForIncoming(), and GWEN_Io_LayerTls_WorkOnRequests().
int GWEN_Io_Layer_AddWaitingSockets | ( | GWEN_IO_LAYER * | io, | |
GWEN_SOCKET_LIST2 * | readSockets, | |||
GWEN_SOCKET_LIST2 * | writeSockets | |||
) |
Definition at line 352 of file iolayer.c.
References GWEN_Io_Layer_AddWaitingSockets().
Referenced by GWEN_Io_Layer_AddWaitingSockets(), and GWEN_Io_Manager_Wait().
const char* GWEN_Io_Layer_GetTypeName | ( | const GWEN_IO_LAYER * | io | ) |
GWEN_IO_LAYER* GWEN_Io_Layer_new | ( | const char * | typeName, | |
GWEN_IO_LAYER * | baseLayer | |||
) |
Definition at line 39 of file iolayer.c.
References GWEN_INHERIT_INIT, GWEN_Io_Layer_Attach(), GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_Io_LayerBuffered_new(), GWEN_Io_LayerCodec_new(), GWEN_Io_LayerFile_new(), GWEN_Io_LayerHttp_new(), GWEN_Io_LayerMemory_new(), GWEN_Io_LayerPackets_new(), and GWEN_Io_LayerSocket_new().
GWEN_IO_LAYER_ADDREQUEST_FN GWEN_Io_Layer_SetAddRequestFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_ADDREQUEST_FN | f | |||
) |
Definition at line 225 of file iolayer.c.
Referenced by GWEN_Io_LayerBuffered_new(), GWEN_Io_LayerCodec_new(), GWEN_Io_LayerFile_new(), GWEN_Io_LayerHttp_new(), GWEN_Io_LayerMemory_new(), GWEN_Io_LayerPackets_new(), GWEN_Io_LayerSocket_new(), and GWEN_Io_LayerTls_new().
GWEN_IO_LAYER_ADDWAITINGSOCKETS_FN GWEN_Io_Layer_SetAddWaitingSocketsFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_ADDWAITINGSOCKETS_FN | f | |||
) |
Definition at line 268 of file iolayer.c.
Referenced by GWEN_Io_LayerSocket_new().
GWEN_IO_LAYER_DELREQUEST_FN GWEN_Io_Layer_SetDelRequestFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_DELREQUEST_FN | f | |||
) |
Definition at line 239 of file iolayer.c.
Referenced by GWEN_Io_LayerBuffered_new(), GWEN_Io_LayerCodec_new(), GWEN_Io_LayerFile_new(), GWEN_Io_LayerHttp_new(), GWEN_Io_LayerMemory_new(), GWEN_Io_LayerPackets_new(), GWEN_Io_LayerSocket_new(), and GWEN_Io_LayerTls_new().
GWEN_IO_LAYER_HASWAITINGREQUESTS_FN GWEN_Io_Layer_SetHasWaitingRequestsFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_HASWAITINGREQUESTS_FN | f | |||
) |
Definition at line 253 of file iolayer.c.
Referenced by GWEN_Io_LayerBuffered_new(), GWEN_Io_LayerCodec_new(), GWEN_Io_LayerFile_new(), GWEN_Io_LayerHttp_new(), GWEN_Io_LayerMemory_new(), GWEN_Io_LayerPackets_new(), GWEN_Io_LayerSocket_new(), and GWEN_Io_LayerTls_new().
GWEN_IO_LAYER_LISTEN_FN GWEN_Io_Layer_SetListenFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_LISTEN_FN | f | |||
) |
Definition at line 283 of file iolayer.c.
Referenced by GWEN_Io_LayerSocket_new().
void GWEN_Io_Layer_SetStatus | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_STATUS | st | |||
) |
Definition at line 202 of file iolayer.c.
Referenced by GWEN_Io_Layer_Listen(), GWEN_Io_LayerBuffered_AddRequest(), GWEN_Io_LayerBuffered_new(), GWEN_Io_LayerCodec_AddRequest(), GWEN_Io_LayerFile_AddRequest(), GWEN_Io_LayerFile_new(), GWEN_Io_LayerHttp_AddRequest(), GWEN_Io_LayerMemory_AddRequest(), GWEN_Io_LayerMemory_new(), GWEN_Io_LayerPackets_Abort(), GWEN_Io_LayerPackets_AddRequest(), GWEN_Io_LayerSocket_AddRequest(), GWEN_Io_LayerSocket_CheckForIncoming(), GWEN_Io_LayerSocket_DelRequest(), GWEN_Io_LayerSocket_Listen(), GWEN_Io_LayerSocket_new(), GWEN_Io_LayerSocket_WorkOnRequests(), GWEN_Io_LayerTls_AddRequest(), GWEN_Io_LayerTls_DelRequest(), and GWEN_Io_LayerTls_WorkOnRequests().
GWEN_IO_LAYER_WORKONREQUESTS_FN GWEN_Io_Layer_SetWorkOnRequestsFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_WORKONREQUESTS_FN | f | |||
) |
Definition at line 211 of file iolayer.c.
Referenced by GWEN_Io_LayerBuffered_new(), GWEN_Io_LayerCodec_new(), GWEN_Io_LayerFile_new(), GWEN_Io_LayerHttp_new(), GWEN_Io_LayerMemory_new(), GWEN_Io_LayerPackets_new(), GWEN_Io_LayerSocket_new(), and GWEN_Io_LayerTls_new().
int GWEN_Io_Layer_WorkOnRequests | ( | GWEN_IO_LAYER * | io | ) |
Definition at line 297 of file iolayer.c.
References GWEN_Io_Layer_WorkResultError.
Referenced by GWEN_Io_LayerBuffered_WorkOnRequests(), GWEN_Io_LayerCodec_WorkOnRequests(), GWEN_Io_LayerHttp_WorkOnRequests(), GWEN_Io_LayerPackets_WorkOnRequests(), and GWEN_Io_Manager_Work().