Webcom C SDK
|
Go to the source code of this file.
Functions | |
wc_context_t * | wc_context_new_with_libuv (char *host, uint16_t port, char *application, uv_loop_t *loop, struct wc_eli_callbacks *callbacks) |
wc_context_t* wc_context_new_with_libuv | ( | char * | host, |
uint16_t | port, | ||
char * | application, | ||
uv_loop_t * | loop, | ||
struct wc_eli_callbacks * | callbacks | ||
) |
Create a webcom context using libuv.
This function creates a new Webcom context, an initiates the connection towards the server. All the underlying I/O and timer events will be taken care of by libuv.
If the http_proxy environment variable is set, the connection will be established through this HTTP proxy.
host | the webcom server host name |
port | the webcom server port |
application | the name of the webcom application to tie to (e.g. "legorange", "chat", ...) |
loop | a pointer to a libuv loop object |
callbacks | a structure containing the callbacks to trigger for various events |