Janus RESTs transport plugin. More...
#include "transport.h"
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <microhttpd.h>
#include "../debug.h"
#include "../apierror.h"
#include "../config.h"
#include "../mutex.h"
#include "../ip-utils.h"
#include "../utils.h"
Data Structures | |
struct | janus_http_msg |
struct | janus_http_session |
struct | janus_http_request_timeout |
Macros | |
#define | JANUS_HTTP_VERSION 2 |
#define | JANUS_HTTP_VERSION_STRING "0.0.2" |
#define | JANUS_HTTP_DESCRIPTION "This transport plugin adds REST (HTTP/HTTPS) support to the Janus API via libmicrohttpd." |
#define | JANUS_HTTP_NAME "JANUS REST (HTTP/HTTPS) transport plugin" |
#define | JANUS_HTTP_AUTHOR "Meetecho s.r.l." |
#define | JANUS_HTTP_PACKAGE "janus.transport.http" |
#define | DEFAULT_CONNECTION_LIMIT (FD_SETSIZE-4) |
#define | JANUS_HTTP_ERROR_INVALID_REQUEST 411 |
#define | JANUS_HTTP_ERROR_MISSING_ELEMENT 412 |
#define | JANUS_HTTP_ERROR_INVALID_ELEMENT 413 |
#define | JANUS_HTTP_ERROR_UNKNOWN_ERROR 499 |
Typedefs | |
typedef int | MHD_Result |
typedef struct janus_http_msg | janus_http_msg |
typedef struct janus_http_session | janus_http_session |
typedef struct janus_http_request_timeout | janus_http_request_timeout |
Janus RESTs transport plugin.
#define DEFAULT_CONNECTION_LIMIT (FD_SETSIZE-4) |
#define JANUS_HTTP_AUTHOR "Meetecho s.r.l." |
#define JANUS_HTTP_DESCRIPTION "This transport plugin adds REST (HTTP/HTTPS) support to the Janus API via libmicrohttpd." |
#define JANUS_HTTP_ERROR_INVALID_ELEMENT 413 |
#define JANUS_HTTP_ERROR_INVALID_REQUEST 411 |
#define JANUS_HTTP_ERROR_MISSING_ELEMENT 412 |
#define JANUS_HTTP_ERROR_UNKNOWN_ERROR 499 |
#define JANUS_HTTP_NAME "JANUS REST (HTTP/HTTPS) transport plugin" |
#define JANUS_HTTP_PACKAGE "janus.transport.http" |
#define JANUS_HTTP_VERSION 2 |
#define JANUS_HTTP_VERSION_STRING "0.0.2" |
typedef struct janus_http_msg janus_http_msg |
typedef struct janus_http_request_timeout janus_http_request_timeout |
typedef struct janus_http_session janus_http_session |
typedef int MHD_Result |
janus_transport* create | ( | void | ) |
void janus_http_destroy | ( | void | ) |
int janus_http_get_api_compatibility | ( | void | ) |
const char * janus_http_get_author | ( | void | ) |
const char * janus_http_get_description | ( | void | ) |
const char * janus_http_get_name | ( | void | ) |
const char * janus_http_get_package | ( | void | ) |
int janus_http_get_version | ( | void | ) |
const char * janus_http_get_version_string | ( | void | ) |
int janus_http_init | ( | janus_transport_callbacks * | callback, |
const char * | config_path | ||
) |
gboolean janus_http_is_admin_api_enabled | ( | void | ) |
gboolean janus_http_is_janus_api_enabled | ( | void | ) |
int janus_http_send_message | ( | janus_transport_session * | transport, |
void * | request_id, | ||
gboolean | admin, | ||
json_t * | message | ||
) |
void janus_http_session_claimed | ( | janus_transport_session * | transport, |
guint64 | session_id | ||
) |
void janus_http_session_created | ( | janus_transport_session * | transport, |
guint64 | session_id | ||
) |
void janus_http_session_over | ( | janus_transport_session * | transport, |
guint64 | session_id, | ||
gboolean | timeout, | ||
gboolean | claimed | ||
) |