ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
WebSocket_Server Class Reference

#include <websocket_server.h>

Inheritance diagram for WebSocket_Server:
Inheritance graph
Collaboration diagram for WebSocket_Server:
Collaboration graph

Public Member Functions

 WebSocket_Server ()
 
 ~WebSocket_Server ()
 
size_t write (uint8_t c)
 
size_t write (const uint8_t *buffer, size_t size)
 
size_t write (const char *s)
 
size_t write (unsigned long n)
 
size_t write (long n)
 
size_t write (unsigned int n)
 
size_t write (int n)
 
bool begin (uint16_t port=0, bool debug=false)
 
uint16_t port ()
 
void end ()
 
int available ()
 
uint availableForWrite ()
 
void pushMSG (const char *data)
 
void pushMSG (uint num, const char *data)
 
void flush (void)
 
void handle ()
 
 operator bool () const
 
void set_currentID (uint8_t current_id)
 
uint8_t get_currentID ()
 
void closeClients ()
 
bool started ()
 
void push2RXbuffer (uint8_t *sbuf, size_t len)
 

Detailed Description

Definition at line 30 of file websocket_server.h.

Constructor & Destructor Documentation

◆ WebSocket_Server()

WebSocket_Server::WebSocket_Server ( )

Definition at line 125 of file websocket_server.cpp.

◆ ~WebSocket_Server()

WebSocket_Server::~WebSocket_Server ( )

Definition at line 136 of file websocket_server.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ available()

int WebSocket_Server::available ( )

Definition at line 117 of file websocket_server.cpp.

◆ availableForWrite()

uint WebSocket_Server::availableForWrite ( )

Definition at line 121 of file websocket_server.cpp.

Here is the caller graph for this function:

◆ begin()

bool WebSocket_Server::begin ( uint16_t  port = 0,
bool  debug = false 
)

Definition at line 140 of file websocket_server.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeClients()

void WebSocket_Server::closeClients ( )

Definition at line 49 of file websocket_server.cpp.

Here is the caller graph for this function:

◆ end()

void WebSocket_Server::end ( )

Definition at line 176 of file websocket_server.cpp.

Here is the caller graph for this function:

◆ flush()

void WebSocket_Server::flush ( void  )

Definition at line 315 of file websocket_server.cpp.

◆ get_currentID()

uint8_t WebSocket_Server::get_currentID ( )

Definition at line 205 of file websocket_server.cpp.

◆ handle()

void WebSocket_Server::handle ( )

Definition at line 295 of file websocket_server.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator bool()

WebSocket_Server::operator bool ( ) const

Definition at line 196 of file websocket_server.cpp.

◆ port()

uint16_t WebSocket_Server::port ( )
inline

Definition at line 59 of file websocket_server.h.

Here is the caller graph for this function:

◆ push2RXbuffer()

void WebSocket_Server::push2RXbuffer ( uint8_t *  sbuf,
size_t  len 
)

Definition at line 244 of file websocket_server.cpp.

Here is the caller graph for this function:

◆ pushMSG() [1/2]

void WebSocket_Server::pushMSG ( const char *  data)

Definition at line 37 of file websocket_server.cpp.

Here is the caller graph for this function:

◆ pushMSG() [2/2]

void WebSocket_Server::pushMSG ( uint  num,
const char *  data 
)

Definition at line 42 of file websocket_server.cpp.

◆ set_currentID()

void WebSocket_Server::set_currentID ( uint8_t  current_id)

Definition at line 201 of file websocket_server.cpp.

Here is the caller graph for this function:

◆ started()

bool WebSocket_Server::started ( )
inline

Definition at line 74 of file websocket_server.h.

Here is the caller graph for this function:

◆ write() [1/7]

size_t WebSocket_Server::write ( const char *  s)
inline

Definition at line 38 of file websocket_server.h.

Here is the call graph for this function:

◆ write() [2/7]

size_t WebSocket_Server::write ( const uint8_t *  buffer,
size_t  size 
)

Definition at line 215 of file websocket_server.cpp.

◆ write() [3/7]

size_t WebSocket_Server::write ( int  n)
inline

Definition at line 54 of file websocket_server.h.

Here is the call graph for this function:

◆ write() [4/7]

size_t WebSocket_Server::write ( long  n)
inline

Definition at line 46 of file websocket_server.h.

Here is the call graph for this function:

◆ write() [5/7]

size_t WebSocket_Server::write ( uint8_t  c)

Definition at line 210 of file websocket_server.cpp.

Here is the caller graph for this function:

◆ write() [6/7]

size_t WebSocket_Server::write ( unsigned int  n)
inline

Definition at line 50 of file websocket_server.h.

Here is the call graph for this function:

◆ write() [7/7]

size_t WebSocket_Server::write ( unsigned long  n)
inline

Definition at line 42 of file websocket_server.h.

Here is the call graph for this function:

The documentation for this class was generated from the following files: