2014-01-08 01:23:02 +00:00
|
|
|
#ifndef __HTTP_SERVER_H__
|
|
|
|
#define __HTTP_SERVER_H__
|
|
|
|
|
2013-11-04 17:18:38 +00:00
|
|
|
#include <libwebsockets.h>
|
|
|
|
|
|
|
|
struct per_session_data__http {
|
2013-11-09 01:07:03 +00:00
|
|
|
int fd;
|
2013-11-04 17:18:38 +00:00
|
|
|
};
|
|
|
|
int callback_http(struct libwebsocket_context *context,
|
2013-11-09 01:07:03 +00:00
|
|
|
struct libwebsocket *wsi,
|
|
|
|
enum libwebsocket_callback_reasons reason, void *user,
|
|
|
|
void *in, size_t len);
|
|
|
|
|
2014-01-08 01:23:02 +00:00
|
|
|
#endif
|
|
|
|
|