The async listener-accept state structure. The structure contains a pointer to the listener socket, and pointers to a callback and error functions. The callback function returns a populated qsc_socket_server_accept_result structure. The error function returns the listener socket and an qsc_socket_exceptions error code. More...
#include <socketserver.h>
Data Fields | |
qsc_socket * | source |
void(* | callback )(qsc_socket_server_accept_result *result) |
void(* | error )(qsc_socket *sock, qsc_socket_exceptions exception) |
The async listener-accept state structure. The structure contains a pointer to the listener socket, and pointers to a callback and error functions. The callback function returns a populated qsc_socket_server_accept_result structure. The error function returns the listener socket and an qsc_socket_exceptions error code.
void(* callback) (qsc_socket_server_accept_result *result) |
A pointer to a callback function
void(* error) (qsc_socket *sock, qsc_socket_exceptions exception) |
A pointer to an error function
qsc_socket* source |
A pointer to the listener socket