endpoint_tcpd.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_TCPD_H
#define GWEN_MSG_ENDPOINT_TCPD_H
#include <gwenhywfar/endpoint.h>
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef GWEN_MSG_ENDPOINT* (*GWEN_ENDPOINT_TCPD_ACCEPT_FN)(GWEN_MSG_ENDPOINT *ep,
GWEN_SOCKET *sk,
const GWEN_INETADDRESS *addr,
void *data);
GWENHYWFAR_API GWEN_MSG_ENDPOINT *GWEN_TcpdEndpoint_new(const char *host, int port, const char *name, int groupId);
GWENHYWFAR_API void GWEN_TcpdEndpoint_SetAcceptFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_TCPD_ACCEPT_FN f, void *data);
#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_TCPD_ACCEPT_FN
GWEN_MSG_ENDPOINT *(* GWEN_ENDPOINT_TCPD_ACCEPT_FN)(GWEN_MSG_ENDPOINT *ep, GWEN_SOCKET *sk, const GWEN_INETADDRESS *addr, void *data)
Definition endpoint_tcpd.h:24
GWEN_TcpdEndpoint_new
GWENHYWFAR_API GWEN_MSG_ENDPOINT * GWEN_TcpdEndpoint_new(const char *host, int port, const char *name, int groupId)
GWEN_TcpdEndpoint_SetAcceptFn
GWENHYWFAR_API void GWEN_TcpdEndpoint_SetAcceptFn(GWEN_MSG_ENDPOINT *ep, GWEN_ENDPOINT_TCPD_ACCEPT_FN f, void *data)
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
GWEN_INETADDRESS
struct GWEN_INETADDRESSSTRUCT GWEN_INETADDRESS
Definition inetaddr.h:95
GWEN_SOCKET
struct GWEN_SOCKET GWEN_SOCKET
Definition inetsocket.h:44