Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_network_ws.c File Reference
#include "nilorea/n_str.h"
#include "nilorea/n_log.h"
#include "nilorea/n_network.h"
#include <getopt.h>
#include <string.h>
+ Include dependency graph for ex_network_ws.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 
static int test_frame_codec (void)
 
void usage (void)
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ test_frame_codec()

static int test_frame_codec ( void  )
static
Examples
ex_network_ws.c.

Definition at line 43 of file ex_network_ws.c.

References N_WS_FRAME::fin, LOG_ERR, LOG_NOTICE, N_WS_FRAME::mask, N_WS_FRAME::masked, n_log, n_ws_frame_build(), n_ws_frame_parse(), N_WS_OP_BINARY, N_WS_OP_PING, N_WS_OP_TEXT, n_ws_unmask(), N_WS_FRAME::opcode, N_WS_FRAME::payload, and N_WS_FRAME::payload_len.

Referenced by main().

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

◆ usage()

void usage ( void  )

Definition at line 35 of file ex_network_ws.c.