|
gwenhywfar
5.10.1
|
#include <gwenhywfar/gwenhywfarapi.h>#include <gwenhywfar/inherit.h>#include <gwenhywfar/list1.h>#include <gwenhywfar/stringlist.h>#include <gwenhywfar/buffer.h>
Go to the source code of this file.
Macros | |
| #define | GWEN_SYNCIO_FLAGS_DONTCLOSE 0x40000000 |
| #define | GWEN_SYNCIO_FLAGS_DOSMODE 0x08000000 |
| #define | GWEN_SYNCIO_FLAGS_PACKET_END 0x10000000 |
| #define | GWEN_SYNCIO_FLAGS_PASSIVE 0x20000000 |
| #define | GWEN_SYNCIO_FLAGS_TRANSPARENT 0x80000000 |
Typedefs | |
| typedef struct GWEN_SYNCIO | GWEN_SYNCIO |
Declarations for Virtual Functions | |
| typedef GWENHYWFAR_CB int(* | GWEN_SYNCIO_CONNECT_FN) (GWEN_SYNCIO *sio) |
| typedef GWENHYWFAR_CB int(* | GWEN_SYNCIO_DISCONNECT_FN) (GWEN_SYNCIO *sio) |
| typedef GWENHYWFAR_CB int(* | GWEN_SYNCIO_FLUSH_FN) (GWEN_SYNCIO *sio) |
| typedef GWENHYWFAR_CB int(* | GWEN_SYNCIO_READ_FN) (GWEN_SYNCIO *sio, uint8_t *buffer, uint32_t size) |
| typedef GWENHYWFAR_CB int(* | GWEN_SYNCIO_WRITE_FN) (GWEN_SYNCIO *sio, const uint8_t *buffer, uint32_t size) |
Enumerations | |
| enum | GWEN_SYNCIO_STATUS { GWEN_SyncIo_Status_Unknown =-1, GWEN_SyncIo_Status_Unconnected =0, GWEN_SyncIo_Status_Disconnected, GWEN_SyncIo_Status_Connected, GWEN_SyncIo_Status_Disabled } |
| #define GWEN_SYNCIO_FLAGS_DOSMODE 0x08000000 |
Definition at line 59 of file syncio.h.
Referenced by GWEN_SyncIo_Buffered_Write(), and GWEN_SyncIo_WriteLine().
| #define GWEN_SYNCIO_FLAGS_PACKET_END 0x10000000 |
Definition at line 58 of file syncio.h.
Referenced by GWEN_SyncIo_Buffered_Read().
| #define GWEN_SYNCIO_FLAGS_PASSIVE 0x20000000 |
Definition at line 57 of file syncio.h.
Referenced by GWEN_HttpSession_fromSocketPassive(), GWEN_HttpSession_fromSyncIoPassive(), GWEN_SyncIo_Http_Read(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Http_RecvBodyToSio(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Socket_Connect(), GWEN_SyncIo_Tls_Connect(), and GWEN_SyncIo_Tls_Prepare().
| #define GWEN_SYNCIO_FLAGS_TRANSPARENT 0x80000000 |
Definition at line 55 of file syncio.h.
Referenced by GWEN_SyncIo_Buffered_Read(), GWEN_SyncIo_Buffered_Write(), GWEN_SyncIo_Http_ReadBody(), GWEN_SyncIo_Http_ReadChunk(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Http_WriteChunkSize(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), and GWEN_SyncIo_Http_WriteStatus().
| typedef struct GWEN_SYNCIO GWEN_SYNCIO |
| typedef GWENHYWFAR_CB int(* GWEN_SYNCIO_CONNECT_FN) (GWEN_SYNCIO *sio) |
| typedef GWENHYWFAR_CB int(* GWEN_SYNCIO_DISCONNECT_FN) (GWEN_SYNCIO *sio) |
| typedef GWENHYWFAR_CB int(* GWEN_SYNCIO_FLUSH_FN) (GWEN_SYNCIO *sio) |
| typedef GWENHYWFAR_CB int(* GWEN_SYNCIO_READ_FN) (GWEN_SYNCIO *sio, uint8_t *buffer, uint32_t size) |
| typedef GWENHYWFAR_CB int(* GWEN_SYNCIO_WRITE_FN) (GWEN_SYNCIO *sio, const uint8_t *buffer, uint32_t size) |
| enum GWEN_SYNCIO_STATUS |
| GWENHYWFAR_API void GWEN_SyncIo_AddFlags | ( | GWEN_SYNCIO * | sio, |
| uint32_t | fl | ||
| ) |
Definition at line 179 of file syncio.c.
Referenced by _csvCheckFile(), GWEN_DB_ReadFile(), GWEN_DB_ReadFileAs(), GWEN_DB_WriteFile(), GWEN_DBIO_ExportToFile(), GWEN_DBIO_ImportFromFile(), GWEN_DBIO_OldDb_CheckFile(), GWEN_DBIO_XmlDb_CheckFile(), GWEN_HttpSession_fromSocketPassive(), GWEN_HttpSession_fromSyncIoPassive(), GWEN_HttpSession_Init(), GWEN_HttpSession_RecvPacketToFile(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_CreateArchive(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_OpenArchive(), GWEN_SyncIo_Buffered_Read(), GWEN_SyncIo_Http_ReadBody(), GWEN_SyncIo_Http_ReadChunk(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Http_WriteChunkSize(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Tls_Connect(), GWEN_XML_ReadFile(), GWEN_XMLContext_ReadFromFile(), GWEN_XMLNode_WriteFile(), main(), write_code_file_c(), write_ha_file_c(), write_hl_file_c(), and write_hp_file_c().

| GWENHYWFAR_API void GWEN_SyncIo_Attach | ( | GWEN_SYNCIO * | sio | ) |
| GWENHYWFAR_API int GWEN_SyncIo_Connect | ( | GWEN_SYNCIO * | sio | ) |
Definition at line 97 of file syncio.c.
Referenced by _csvCheckFile(), GWEN_DB_ReadFile(), GWEN_DB_ReadFileAs(), GWEN_DB_WriteFile(), GWEN_DBIO_ExportToFile(), GWEN_DBIO_ImportFromFile(), GWEN_DBIO_OldDb_CheckFile(), GWEN_DBIO_XmlDb_CheckFile(), GWEN_HttpSession_ConnectionTest(), GWEN_HttpSession_RecvPacketToFile(), GWEN_HttpSession_SendPacket(), GWEN_MDigest__HashFile(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_CreateArchive(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_OpenArchive(), GWEN_SyncIo_Buffered_Connect(), GWEN_SyncIo_Helper_CopyFile(), GWEN_SyncIo_Helper_PartiallyReadFile(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Helper_ReadFileToStringList(), GWEN_SyncIo_Helper_WriteFile(), GWEN_SyncIo_Http_Connect(), GWEN_SyncIo_Tls_Connect(), GWEN_XML_ReadFile(), GWEN_XMLContext_ReadFromFile(), GWEN_XMLNode_WriteFile(), main(), write_code_file_c(), write_ha_file_c(), write_hl_file_c(), and write_hp_file_c().

| GWENHYWFAR_API int GWEN_SyncIo_Disconnect | ( | GWEN_SYNCIO * | sio | ) |
Definition at line 109 of file syncio.c.
Referenced by _csvCheckFile(), GWEN_DB_ReadFile(), GWEN_DB_ReadFileAs(), GWEN_DB_WriteFile(), GWEN_DBIO_ExportToFile(), GWEN_DBIO_ImportFromFile(), GWEN_DBIO_OldDb_CheckFile(), GWEN_DBIO_XmlDb_CheckFile(), GWEN_HttpSession_ConnectionTest(), GWEN_HttpSession_Fini(), GWEN_HttpSession_RecvCommand(), GWEN_HttpSession_RecvPacket(), GWEN_HttpSession_RecvPacketToFile(), GWEN_HttpSession_SendPacket(), GWEN_HttpSession_SendStatus(), GWEN_MDigest__HashFile(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_CloseArchive(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_SyncIo_Buffered_Disconnect(), GWEN_SyncIo_Helper_CopyFile(), GWEN_SyncIo_Helper_PartiallyReadFile(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Helper_ReadFileToStringList(), GWEN_SyncIo_Helper_WriteFile(), GWEN_SyncIo_Http_Disconnect(), GWEN_SyncIo_Tls_Connect(), GWEN_SyncIo_Tls_Disconnect(), GWEN_SyncIo_Tls_Read(), GWEN_SyncIo_Tls_Write(), GWEN_XML_ReadFile(), GWEN_XMLContext_ReadFromFile(), GWEN_XMLNode_WriteFile(), main(), write_code_file_c(), write_ha_file_c(), write_hl_file_c(), and write_hp_file_c().

| GWENHYWFAR_API int GWEN_SyncIo_Flush | ( | GWEN_SYNCIO * | sio | ) |
Definition at line 121 of file syncio.c.
Referenced by GWEN_HttpSession_RecvPacketToFile(), and GWEN_Sar_CloseArchive().

| GWENHYWFAR_API void GWEN_SyncIo_free | ( | GWEN_SYNCIO * | sio | ) |
Definition at line 78 of file syncio.c.
References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, GWEN_LIST_FINI, and GWEN_SyncIo_free().
Referenced by _csvCheckFile(), GWEN_DB_ReadFile(), GWEN_DB_ReadFileAs(), GWEN_DB_ReadFromString(), GWEN_DB_WriteFile(), GWEN_DB_WriteToBuffer(), GWEN_DBIO_ExportToBuffer(), GWEN_DBIO_ExportToFile(), GWEN_DBIO_ImportFromFile(), GWEN_DBIO_OldDb_CheckFile(), GWEN_DBIO_XmlDb_CheckFile(), GWEN_Gui_ExtendSyncIo(), GWEN_Gui_Internal_GetSyncIo(), GWEN_HttpSession_Fini(), GWEN_HttpSession_free(), GWEN_HttpSession_Init(), GWEN_HttpSession_RecvPacketToFile(), GWEN_MDigest__HashFile(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_CloseArchive(), GWEN_Sar_CreateArchive(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_free(), GWEN_Sar_OpenArchive(), GWEN_SyncIo_free(), GWEN_SyncIo_Helper_CopyFile(), GWEN_SyncIo_Helper_PartiallyReadFile(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Helper_ReadFileToStringList(), GWEN_SyncIo_Helper_WriteFile(), GWEN_XML_ReadFile(), GWEN_XMLContext_ReadFromFile(), GWEN_XMLContext_ReadFromString(), GWEN_XMLNode_fromString(), GWEN_XMLNode_toBuffer(), GWEN_XMLNode_WriteFile(), main(), write_code_file_c(), write_ha_file_c(), write_hl_file_c(), and write_hp_file_c().


| GWENHYWFAR_API GWEN_SYNCIO* GWEN_SyncIo_GetBaseIo | ( | const GWEN_SYNCIO * | sio | ) |
Definition at line 224 of file syncio.c.
Referenced by GWEN_HttpSession_fromSocketPassive(), GWEN_HttpSession_fromSyncIoPassive(), GWEN_SyncIo_Buffered_Connect(), GWEN_SyncIo_Buffered_Disconnect(), GWEN_SyncIo_Buffered_Read(), GWEN_SyncIo_Buffered_Write(), GWEN_SyncIo_Http_Connect(), GWEN_SyncIo_Http_Disconnect(), GWEN_SyncIo_Http_ParseHeader(), GWEN_SyncIo_Http_ReadBody(), GWEN_SyncIo_Http_ReadChunk(), GWEN_SyncIo_Http_ReadChunkSize(), GWEN_SyncIo_Http_ReadCommand(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_ReadStatus(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Http_WriteChunkSize(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Tls_Connect(), GWEN_SyncIo_Tls_Disconnect(), GWEN_SyncIo_Tls_Pull(), GWEN_SyncIo_Tls_Push(), GWEN_SyncIo_Tls_Read(), and GWEN_SyncIo_Tls_Write().

| GWENHYWFAR_API GWEN_SYNCIO* GWEN_SyncIo_GetBaseIoByTypeName | ( | const GWEN_SYNCIO * | sio, |
| const char * | typeName | ||
| ) |
Definition at line 233 of file syncio.c.
References NULL.
Referenced by GWEN_HttpSession_Init().

| GWENHYWFAR_API uint32_t GWEN_SyncIo_GetFlags | ( | const GWEN_SYNCIO * | sio | ) |
Definition at line 161 of file syncio.c.
Referenced by GWEN_SyncIo_Buffered_Read(), GWEN_SyncIo_Buffered_Write(), GWEN_SyncIo_Http_Read(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Http_RecvBodyToSio(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Socket_Connect(), GWEN_SyncIo_Tls_Connect(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_Prepare(), GWEN_SyncIo_Tls_Read(), and GWEN_SyncIo_WriteLine().

| GWENHYWFAR_API GWEN_SYNCIO_STATUS GWEN_SyncIo_GetStatus | ( | const GWEN_SYNCIO * | sio | ) |
Definition at line 197 of file syncio.c.
Referenced by GWEN_DBIO_Import(), GWEN_SyncIo_Http_Connect(), GWEN_SyncIo_Http_Disconnect(), GWEN_SyncIo_Http_Read(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Socket_Connect(), GWEN_SyncIo_Socket_Read(), GWEN_SyncIo_Socket_Write(), GWEN_SyncIo_Tls_Connect(), GWEN_SyncIo_Tls_Disconnect(), GWEN_SyncIo_Tls_Read(), and GWEN_SyncIo_Tls_Write().

| GWENHYWFAR_API const char* GWEN_SyncIo_GetTypeName | ( | const GWEN_SYNCIO * | sio | ) |
Definition at line 215 of file syncio.c.
Referenced by GWEN_DBIO_Import(), and GWEN_HttpSession_Init().

| GWENHYWFAR_API int GWEN_SyncIo_Helper_CopyFile | ( | const char * | srcPath, |
| const char * | destPath | ||
| ) |
Copy source file to destination file. Destination file is overwritten if it exists.
| srcPath | path and name of the file to read |
| destPath | path and name of the file to write |
Definition at line 640 of file syncio.c.
References DBG_INFO, GWEN_ERROR_INTERRUPTED, GWEN_LOGDOMAIN, GWEN_SyncIo_Connect(), GWEN_SyncIo_Disconnect(), GWEN_SyncIo_File_CreationMode_OpenExisting, GWEN_SyncIo_File_CreationMode_TruncateExisting, GWEN_SYNCIO_FILE_FLAGS_READ, GWEN_SYNCIO_FILE_FLAGS_WRITE, GWEN_SyncIo_File_new(), GWEN_SyncIo_free(), GWEN_SyncIo_Read(), GWEN_SyncIo_SetFlags(), and GWEN_SyncIo_WriteForced().
Referenced by GWB_Utils_CopyFile().


| GWENHYWFAR_API int GWEN_SyncIo_Helper_PartiallyReadFile | ( | const char * | fName, |
| uint8_t * | buffer, | ||
| uint32_t | size | ||
| ) |
Read SIZE bytes from the given file. Returns the number of bytes actually read or an error code (negative value).
| fName | name of the file to load |
| buffer | pointer to a fixed buffer to receive the bytes read |
| size | number of bytes to read |
Definition at line 476 of file syncio.c.
References DBG_INFO, GWEN_ERROR_INTERRUPTED, GWEN_LOGDOMAIN, GWEN_SyncIo_Connect(), GWEN_SyncIo_Disconnect(), GWEN_SyncIo_File_CreationMode_OpenExisting, GWEN_SYNCIO_FILE_FLAGS_READ, GWEN_SyncIo_File_new(), GWEN_SyncIo_free(), GWEN_SyncIo_Read(), and GWEN_SyncIo_SetFlags().

| GWENHYWFAR_API int GWEN_SyncIo_Helper_ReadFile | ( | const char * | fName, |
| GWEN_BUFFER * | dbuf | ||
| ) |
Read a whole file into the given buffer
| fName | name of the file to load |
| dbuf | GWEN_BUFFER to receive the bytes read |
Definition at line 524 of file syncio.c.
References DBG_INFO, GWEN_Buffer_AdjustUsedBytes(), GWEN_Buffer_AllocRoom(), GWEN_Buffer_GetMaxUnsegmentedWrite(), GWEN_Buffer_GetPosPointer(), GWEN_Buffer_IncrementPos(), GWEN_ERROR_INTERRUPTED, GWEN_LOGDOMAIN, GWEN_SyncIo_Connect(), GWEN_SyncIo_Disconnect(), GWEN_SyncIo_File_CreationMode_OpenExisting, GWEN_SYNCIO_FILE_FLAGS_READ, GWEN_SyncIo_File_new(), GWEN_SyncIo_File_Seek(), GWEN_SyncIo_File_Whence_End, GWEN_SyncIo_File_Whence_Set, GWEN_SyncIo_free(), GWEN_SyncIo_Read(), and GWEN_SyncIo_SetFlags().
Referenced by _readDepFile(), and _readModifyWriteFile().


| GWENHYWFAR_API int GWEN_SyncIo_Helper_ReadFileToStringList | ( | const char * | fname, |
| int | maxLines, | ||
| GWEN_STRINGLIST * | sl | ||
| ) |
Definition at line 438 of file syncio.c.
References DBG_INFO, GWEN_LOGDOMAIN, GWEN_SyncIo_Buffered_new(), GWEN_SyncIo_Buffered_ReadLinesToStringList(), GWEN_SyncIo_Connect(), GWEN_SyncIo_Disconnect(), GWEN_SyncIo_File_CreationMode_OpenExisting, GWEN_SYNCIO_FILE_FLAGS_READ, GWEN_SyncIo_File_new(), GWEN_SyncIo_free(), and GWEN_SyncIo_SetFlags().
Referenced by GWEN_MDigest_CheckFileTree().


| GWENHYWFAR_API int GWEN_SyncIo_Helper_WriteFile | ( | const char * | fName, |
| const uint8_t * | ptrSource, | ||
| uint64_t | lenSource | ||
| ) |
Writes a whole file from the given buffer
| fName | name of the file to load |
| ptrSource | pointer to the data to write |
| lenSource | size of the data to write |
Definition at line 586 of file syncio.c.
References DBG_INFO, GWEN_ERROR_INTERRUPTED, GWEN_ERROR_IO, GWEN_LOGDOMAIN, GWEN_SyncIo_Connect(), GWEN_SyncIo_Disconnect(), GWEN_SyncIo_File_CreationMode_CreateNew, GWEN_SYNCIO_FILE_FLAGS_READ, GWEN_SYNCIO_FILE_FLAGS_UREAD, GWEN_SYNCIO_FILE_FLAGS_UWRITE, GWEN_SYNCIO_FILE_FLAGS_WRITE, GWEN_SyncIo_File_new(), GWEN_SyncIo_free(), GWEN_SyncIo_SetFlags(), and GWEN_SyncIo_Write().
Referenced by _readModifyWriteFile(), _writeConfigH(), _writeStaticLibHelper(), GWB_Tools_CheckCompilerArgs(), GWB_Tools_TryCompile(), and GWB_Tools_TryLink().


| GWENHYWFAR_API GWEN_SYNCIO* GWEN_SyncIo_new | ( | const char * | typeName, |
| GWEN_SYNCIO * | baseIo | ||
| ) |
Definition at line 51 of file syncio.c.
References GWEN_INHERIT_INIT, GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_SyncIo_Buffered_new(), GWEN_SyncIo_Http_new(), GWEN_SyncIo_Memory_fromBuffer(), GWEN_SyncIo_Memory_new(), GWEN_SyncIo_Socket_new(), GWEN_SyncIo_Socket_TakeOver(), and GWEN_SyncIo_Tls_new().

| GWENHYWFAR_API int GWEN_SyncIo_Read | ( | GWEN_SYNCIO * | sio, |
| uint8_t * | buffer, | ||
| uint32_t | size | ||
| ) |
Definition at line 133 of file syncio.c.
References GWEN_ERROR_EOF.
Referenced by GWEN_DBIO_XmlDb_CheckFile(), GWEN_FastBuffer_ReadLine(), GWEN_FastBuffer_ReadLineToBuffer(), GWEN_MDigest__HashFile(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_ScanFile(), GWEN_SyncIo_Buffered_Read(), GWEN_SyncIo_Buffered_ReadLineToBuffer(), GWEN_SyncIo_Helper_CopyFile(), GWEN_SyncIo_Helper_PartiallyReadFile(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Http_ReadBody(), GWEN_SyncIo_Http_ReadChunk(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Http_RecvBodyToSio(), GWEN_SyncIo_ReadForced(), and GWEN_SyncIo_Tls_Pull().

| GWENHYWFAR_API int GWEN_SyncIo_ReadForced | ( | GWEN_SYNCIO * | sio, |
| uint8_t * | buffer, | ||
| uint32_t | size | ||
| ) |
Definition at line 360 of file syncio.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_EOF, GWEN_ERROR_INTERRUPTED, GWEN_LOGDOMAIN, and GWEN_SyncIo_Read().
Referenced by GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_ScanFile(), GWEN_Sar_Sign(), and GWEN_Sar_Verify().


| GWENHYWFAR_API GWEN_SYNCIO_CONNECT_FN GWEN_SyncIo_SetConnectFn | ( | GWEN_SYNCIO * | sio, |
| GWEN_SYNCIO_CONNECT_FN | fn | ||
| ) |
Definition at line 252 of file syncio.c.
Referenced by GWEN_SyncIo_Buffered_new(), GWEN_SyncIo_Http_new(), GWEN_SyncIo_Socket_new(), GWEN_SyncIo_Socket_TakeOver(), and GWEN_SyncIo_Tls_new().

| GWENHYWFAR_API GWEN_SYNCIO_DISCONNECT_FN GWEN_SyncIo_SetDisconnectFn | ( | GWEN_SYNCIO * | sio, |
| GWEN_SYNCIO_DISCONNECT_FN | fn | ||
| ) |
Definition at line 265 of file syncio.c.
Referenced by GWEN_SyncIo_Buffered_new(), GWEN_SyncIo_Http_new(), GWEN_SyncIo_Socket_new(), GWEN_SyncIo_Socket_TakeOver(), and GWEN_SyncIo_Tls_new().

| GWENHYWFAR_API void GWEN_SyncIo_SetFlags | ( | GWEN_SYNCIO * | sio, |
| uint32_t | fl | ||
| ) |
Definition at line 170 of file syncio.c.
Referenced by GWEN_MDigest__HashFile(), GWEN_SyncIo_Helper_CopyFile(), GWEN_SyncIo_Helper_PartiallyReadFile(), GWEN_SyncIo_Helper_ReadFile(), GWEN_SyncIo_Helper_ReadFileToStringList(), and GWEN_SyncIo_Helper_WriteFile().

| GWENHYWFAR_API GWEN_SYNCIO_FLUSH_FN GWEN_SyncIo_SetFlushFn | ( | GWEN_SYNCIO * | sio, |
| GWEN_SYNCIO_FLUSH_FN | fn | ||
| ) |
| GWENHYWFAR_API GWEN_SYNCIO_READ_FN GWEN_SyncIo_SetReadFn | ( | GWEN_SYNCIO * | sio, |
| GWEN_SYNCIO_READ_FN | fn | ||
| ) |
Definition at line 291 of file syncio.c.
Referenced by GWEN_SyncIo_Buffered_new(), GWEN_SyncIo_Http_new(), GWEN_SyncIo_Memory_fromBuffer(), GWEN_SyncIo_Memory_new(), GWEN_SyncIo_Socket_new(), GWEN_SyncIo_Socket_TakeOver(), and GWEN_SyncIo_Tls_new().

| GWENHYWFAR_API void GWEN_SyncIo_SetStatus | ( | GWEN_SYNCIO * | sio, |
| GWEN_SYNCIO_STATUS | st | ||
| ) |
Definition at line 206 of file syncio.c.
Referenced by GWEN_SyncIo_Http_Connect(), GWEN_SyncIo_Http_Disconnect(), GWEN_SyncIo_Memory_fromBuffer(), GWEN_SyncIo_Memory_new(), GWEN_SyncIo_Socket_Connect(), GWEN_SyncIo_Socket_Disconnect(), GWEN_SyncIo_Socket_TakeOver(), GWEN_SyncIo_Tls_Connect(), GWEN_SyncIo_Tls_Disconnect(), GWEN_SyncIo_Tls_Read(), and GWEN_SyncIo_Tls_Write().

| GWENHYWFAR_API GWEN_SYNCIO_WRITE_FN GWEN_SyncIo_SetWriteFn | ( | GWEN_SYNCIO * | sio, |
| GWEN_SYNCIO_WRITE_FN | fn | ||
| ) |
Definition at line 304 of file syncio.c.
Referenced by GWEN_SyncIo_Buffered_new(), GWEN_SyncIo_Http_new(), GWEN_SyncIo_Memory_fromBuffer(), GWEN_SyncIo_Memory_new(), GWEN_SyncIo_Socket_new(), GWEN_SyncIo_Socket_TakeOver(), and GWEN_SyncIo_Tls_new().

| GWENHYWFAR_API void GWEN_SyncIo_SubFlags | ( | GWEN_SYNCIO * | sio, |
| uint32_t | fl | ||
| ) |
Definition at line 188 of file syncio.c.
Referenced by GWEN_SyncIo_Buffered_Read(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), and GWEN_SyncIo_Tls_Connect().

| GWENHYWFAR_API int GWEN_SyncIo_Write | ( | GWEN_SYNCIO * | sio, |
| const uint8_t * | buffer, | ||
| uint32_t | size | ||
| ) |
Definition at line 147 of file syncio.c.
References GWEN_ERROR_BROKEN_PIPE.
Referenced by GWEN_SyncIo_Buffered_Write(), GWEN_SyncIo_Helper_WriteFile(), GWEN_SyncIo_Tls_Push(), and GWEN_SyncIo_WriteForced().

| GWENHYWFAR_API int GWEN_SyncIo_WriteChar | ( | GWEN_SYNCIO * | sio, |
| char | s | ||
| ) |
Definition at line 431 of file syncio.c.
References GWEN_SyncIo_WriteForced().
Referenced by write_apidoc_c(), write_apidocrec_c(), write_code_constrec_c(), write_code_dupList_c(), write_code_duprec_c(), write_code_fromdbArg_c(), write_code_fromdbrec_c(), write_code_setget_c(), write_code_todbArg_c(), write_code_todbrec_c(), write_h_elem_c(), write_h_func_c(), and write_h_setget_c().


| GWENHYWFAR_API int GWEN_SyncIo_WriteForced | ( | GWEN_SYNCIO * | sio, |
| const uint8_t * | buffer, | ||
| uint32_t | size | ||
| ) |
Definition at line 317 of file syncio.c.
References DBG_INFO, GWEN_ERROR_INTERRUPTED, GWEN_LOGDOMAIN, and GWEN_SyncIo_Write().
Referenced by GWEN_HttpSession_SendPacket(), GWEN_HttpSession_SendStatus(), GWEN_Sar_AddAndDigestFileLink(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_AddFile(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_Sign(), GWEN_SyncIo_Buffered_Write(), GWEN_SyncIo_Helper_CopyFile(), GWEN_SyncIo_Http_RecvBodyToSio(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Http_WriteChunkSize(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and write_xml_to_bio().


| GWENHYWFAR_API int GWEN_SyncIo_WriteLine | ( | GWEN_SYNCIO * | sio, |
| const char * | s | ||
| ) |
Definition at line 407 of file syncio.c.
References DBG_INFO, GWEN_LOGDOMAIN, GWEN_SYNCIO_FLAGS_DOSMODE, GWEN_SyncIo_GetFlags(), GWEN_SyncIo_WriteForced(), and GWEN_SyncIo_WriteString().
Referenced by write_apidoc_c(), write_apidocrec_c(), write_c_enums(), write_code_builtin_c(), write_code_const_c(), write_code_constrec_c(), write_code_dest_c(), write_code_dup_c(), write_code_dupArg_c(), write_code_dupList_c(), write_code_duprec_c(), write_code_file_c(), write_code_freeElem_c(), write_code_fromdb_c(), write_code_fromdbrec_c(), write_code_readdb_c(), write_code_setget_c(), write_code_todb_c(), write_code_todbArg_c(), write_code_todbrec_c(), write_h_elem_c(), write_h_enums(), write_h_func_c(), write_h_funcs(), write_h_header(), write_h_setget_c(), write_h_struct_c(), write_ha_file_c(), write_hl_file_c(), and write_hp_file_c().


| GWENHYWFAR_API int GWEN_SyncIo_WriteString | ( | GWEN_SYNCIO * | sio, |
| const char * | s | ||
| ) |
This is just a convenience function to easily replace a function from the deprecated module GWEN_BUFFEREDIO.
Definition at line 392 of file syncio.c.
References DBG_INFO, GWEN_LOGDOMAIN, and GWEN_SyncIo_WriteForced().
Referenced by GWEN_SyncIo_WriteLine(), write_apidoc_c(), write_apidocrec_c(), write_c_enums(), write_code_builtin_c(), write_code_const_c(), write_code_constrec_c(), write_code_dest_c(), write_code_dup_c(), write_code_dupArg_c(), write_code_dupList_c(), write_code_duprec_c(), write_code_file_c(), write_code_freeElem_c(), write_code_fromdb_c(), write_code_fromdbArg_c(), write_code_fromdbrec_c(), write_code_readdb_c(), write_code_setget_c(), write_code_todb_c(), write_code_todbArg_c(), write_code_todbrec_c(), write_h_elem_c(), write_h_enums(), write_h_func_c(), write_h_funcs(), write_h_header(), write_h_setget_c(), write_h_struct_c(), write_ha_file_c(), write_hl_file_c(), write_hp_file_c(), and write_if_nonnull().


1.8.14