gwenhywfar  5.11.1beta
endpoint_tcpd.h
Go to the documentation of this file.
1 /****************************************************************************
2  * This file is part of the project Gwenhywfar.
3  * Gwenhywfar (c) by 2023 Martin Preuss, all rights reserved.
4  *
5  * The license for this file can be found in the file COPYING which you
6  * should have received along with this file.
7  ****************************************************************************/
8 
9 #ifndef GWEN_MSG_ENDPOINT_TCPD_H
10 #define GWEN_MSG_ENDPOINT_TCPD_H
11 
12 
13 #include <gwenhywfar/endpoint.h>
14 
15 #include <time.h>
16 
17 
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 
24 typedef GWEN_MSG_ENDPOINT* (*GWEN_ENDPOINT_TCPD_ACCEPT_FN)(GWEN_MSG_ENDPOINT *ep,
25  GWEN_SOCKET *sk,
26  const GWEN_INETADDRESS *addr,
27  void *data);
28 
29 
30 
31 GWENHYWFAR_API GWEN_MSG_ENDPOINT *GWEN_TcpdEndpoint_new(const char *host, int port, const char *name, int groupId);
32 
33 
35 
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 
42 #endif
43 
44 
struct GWEN_MSG_ENDPOINT GWEN_MSG_ENDPOINT
Object which can send and receive messages (base class).
Definition: endpoint.h:37
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
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)
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
struct GWEN_INETADDRESSSTRUCT GWEN_INETADDRESS
Definition: inetaddr.h:95
struct GWEN_SOCKET GWEN_SOCKET
Definition: inetsocket.h:40