Files
aqhomecontrol/aqhome/ipc2/tcpd_object.h
2025-01-09 01:42:19 +01:00

30 lines
856 B
C

/****************************************************************************
* This file is part of the project AqHome.
* AqHome (c) by 2025 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 AQH_TCPD_OBJECT_H
#define AQH_TCPD_OBJECT_H
#include <aqhome/events2/object.h>
enum {
/** new client connected (param1 is fd for the new clients non-blocking socket) */
AQH_TCPD_OBJECT_SIGNAL_NEWCONN=AQH_OBJECT_SIGNAL_LAST
};
AQHOME_API AQH_OBJECT *AQH_TcpdObject_new(AQH_EVENT_LOOP *eventLoop);
AQHOME_API int AQH_TcpdObject_StartListening(AQH_OBJECT *o, const char *addr, int port);
AQHOME_API void AQH_TcpdObject_StopListening(AQH_OBJECT *o);
#endif