aqhome: Prepared reorganizing IPC and nodes code around built-in event2 api.
This commit is contained in:
@@ -17,9 +17,18 @@ enum {
|
||||
};
|
||||
|
||||
|
||||
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);
|
||||
/**
|
||||
* Start listening to the given fdObject which represents a tcp network socket.
|
||||
* The socket for that fdObject can be created by @ref AQH_TcpdObject_CreateListeningSocket().
|
||||
*
|
||||
*/
|
||||
AQHOME_API AQH_OBJECT *AQH_TcpdObject_new(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *fdObject);
|
||||
|
||||
|
||||
/**
|
||||
* Helper function to create a listening TCP socket.
|
||||
*/
|
||||
AQHOME_API int AQH_TcpdObject_CreateListeningSocket(const char *addr, int port);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user