endpoint_msgio.h
Go to the documentation of this file.
/****************************************************************************
* This file is part of the project Gwenhywfar.
* Gwenhywfar (c) by 2023 Martin Preuss, all rights reserved.
*
* The license for this file can be found in the file COPYING which you
* should have received along with this file.
****************************************************************************/
#ifndef GWEN_MSG_ENDPOINT_MSGIO_H
#define GWEN_MSG_ENDPOINT_MSGIO_H
#include <gwenhywfar/endpoint.h>
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef int (*GWEN_ENDPOINT_MSGIO_GETBYTESNEEDED_FN)(GWEN_MSG_ENDPOINT *ep, GWEN_MSG *msg);
typedef int (*GWEN_ENDPOINT_MSGIO_SENDMSGSTART_FN)(GWEN_MSG_ENDPOINT *ep, GWEN_MSG *msg);
typedef void (*GWEN_ENDPOINT_MSGIO_SENDMSGFINISH_FN)(GWEN_MSG_ENDPOINT *ep, GWEN_MSG *msg);
GWENHYWFAR_API void GWEN_MsgIoEndpoint_Extend(GWEN_MSG_ENDPOINT *ep);
GWENHYWFAR_API void GWEN_MsgIoEndpoint_SetGetNeededBytesFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MSGIO_GETBYTESNEEDED_FN f);
GWENHYWFAR_API void GWEN_MsgIoEndpoint_SetSendMsgStartFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MSGIO_SENDMSGSTART_FN f);
GWENHYWFAR_API void GWEN_MsgIoEndpoint_SetSendMsgFinishFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MSGIO_SENDMSGFINISH_FN f);
#ifdef __cplusplus
}
#endif
#endif
endpoint.h
GWEN_MSG_ENDPOINT
struct GWEN_MSG_ENDPOINT GWEN_MSG_ENDPOINT
Object which can send and receive messages (base class).
Definition endpoint.h:37
GWEN_ENDPOINT_MSGIO_SENDMSGSTART_FN
int(* GWEN_ENDPOINT_MSGIO_SENDMSGSTART_FN)(GWEN_MSG_ENDPOINT *ep, GWEN_MSG *msg)
Definition endpoint_msgio.h:36
GWEN_ENDPOINT_MSGIO_SENDMSGFINISH_FN
void(* GWEN_ENDPOINT_MSGIO_SENDMSGFINISH_FN)(GWEN_MSG_ENDPOINT *ep, GWEN_MSG *msg)
Definition endpoint_msgio.h:37
GWEN_MsgIoEndpoint_Extend
GWENHYWFAR_API void GWEN_MsgIoEndpoint_Extend(GWEN_MSG_ENDPOINT *ep)
GWEN_MsgIoEndpoint_SetGetNeededBytesFn
GWENHYWFAR_API void GWEN_MsgIoEndpoint_SetGetNeededBytesFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MSGIO_GETBYTESNEEDED_FN f)
GWEN_MsgIoEndpoint_SetSendMsgStartFn
GWENHYWFAR_API void GWEN_MsgIoEndpoint_SetSendMsgStartFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MSGIO_SENDMSGSTART_FN f)
GWEN_MsgIoEndpoint_SetSendMsgFinishFn
GWENHYWFAR_API void GWEN_MsgIoEndpoint_SetSendMsgFinishFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_MSGIO_SENDMSGFINISH_FN f)
GWEN_ENDPOINT_MSGIO_GETBYTESNEEDED_FN
int(* GWEN_ENDPOINT_MSGIO_GETBYTESNEEDED_FN)(GWEN_MSG_ENDPOINT *ep, GWEN_MSG *msg)
Definition endpoint_msgio.h:33
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
GWEN_MSG
struct GWEN_MSG GWEN_MSG
Definition msg.h:24