AXHttp
ax_http_server_socket.h
Go to the documentation of this file.
1 #ifndef _AX_HTTP_SERVER_SOCKET_H_
2 #define _AX_HTTP_SERVER_SOCKET_H_
3 
4 #include <glib.h>
5 
25 typedef void (*SocketRequestCallback)(const gchar *path,
26  const gchar *method,
27  const gchar *query,
28  GHashTable *parameters,
29  gint reply_fd,
30  gpointer user_data);
31 
36 
37 
44 ax_http_server_socket_new(const gchar *name,
45  SocketRequestCallback request_callback,
46  gpointer user_data);
47 
54 void
56 
57 #endif /* _AX_HTTP_SERVER_SOCKET_H_ */
Definition: ax_http_server_socket_int.h:19
void ax_http_server_socket_free(AXHttpServerSocket *socket)
Destroys the AXHttpServerSocket. Any pending callbacks associated with theAXHttpServerSocket will be ...
Definition: ax_http_server_socket.c:37
void(* SocketRequestCallback)(const gchar *path, const gchar *method, const gchar *query, GHashTable *parameters, gint reply_fd, gpointer user_data)
This is the prototype of the callback function called whenever an matching http request is received...
Definition: ax_http_server_socket.h:25
AXHttpServerSocket * ax_http_server_socket_new(const gchar *name, SocketRequestCallback request_callback, gpointer user_data)
Creates a new AXHttpServerSocket.
Definition: ax_http_server_socket.c:11