ipc2: started working on event-based ipc handling.
This commit is contained in:
29
aqhome/ipc2/tcpd_object.h
Normal file
29
aqhome/ipc2/tcpd_object.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/****************************************************************************
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user