DDraceNetwork Documentation
Loading...
Searching...
No Matches
websockets.h File Reference
#include <base/detect.h>
#include <base/types.h>
#include <sys/select.h>
#include <cstddef>
Include dependency graph for websockets.h:

Go to the source code of this file.

Functions

void websocket_init ()
int websocket_create (const NETADDR *bindaddr)
void websocket_destroy (int socket)
int websocket_recv (int socket, unsigned char *data, size_t maxsize, NETADDR *addr)
int websocket_send (int socket, const unsigned char *data, size_t size, const NETADDR *addr)
int websocket_fd_set (int socket, fd_set *set)
int websocket_fd_get (int socket, fd_set *set)

Function Documentation

◆ websocket_create()

int websocket_create ( const NETADDR * bindaddr)

◆ websocket_destroy()

void websocket_destroy ( int socket)

◆ websocket_fd_get()

int websocket_fd_get ( int socket,
fd_set * set )

◆ websocket_fd_set()

int websocket_fd_set ( int socket,
fd_set * set )

◆ websocket_init()

void websocket_init ( )

◆ websocket_recv()

int websocket_recv ( int socket,
unsigned char * data,
size_t maxsize,
NETADDR * addr )

◆ websocket_send()

int websocket_send ( int socket,
const unsigned char * data,
size_t size,
const NETADDR * addr )