Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Attributes | List of all members
ws_server_t Struct Reference

server Web Socket server parameters More...

#include <ws.h>

Public Attributes

const char * host
 Required hostname that the wsServer will bind to. More...
 
uint16_t port
 Listening port. More...
 
int thread_loop
 Whether if the ws_socket() should create a new thread and be non-blocking (1) or not (0). More...
 
uint32_t timeout_ms
 Ping timeout in milliseconds. More...
 
struct ws_events evs
 Server events. More...
 
void * context
 Server context. More...
 

Detailed Description

server Web Socket server parameters

Member Data Documentation

◆ context

void* context

Server context.

Provided by the user, can be accessed via ws_get_server_context from onopen.

◆ evs

struct ws_events evs

Server events.

◆ host

const char* host

Required hostname that the wsServer will bind to.

◆ port

uint16_t port

Listening port.

◆ thread_loop

int thread_loop

Whether if the ws_socket() should create a new thread and be non-blocking (1) or not (0).

◆ timeout_ms

uint32_t timeout_ms

Ping timeout in milliseconds.


The documentation for this struct was generated from the following file: