libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws-io-ops.h File Reference

#include <lws-io-ops.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lws_io_ops

Macros

#define LWS_IO_OPS_ABI_VERSION   2

Typedefs

typedef struct lws_io_ops lws_io_ops_t

Enumerations

enum  lws_io_close_phase {
  LWS_IOCLOSE_QUIESCE , LWS_IOCLOSE_UNWATCH , LWS_IOCLOSE_SHUTDOWN , LWS_IOCLOSE_STAGE ,
  LWS_IOCLOSE_RELEASE
}
enum  lws_io_path_op { LWS_IOPATH_COMMIT , LWS_IOPATH_NEW_SOCKET }

Variables

LWS_VISIBLE LWS_EXTERN_FOR_DATA const lws_io_ops_t lws_io_ops_default

Macro Definition Documentation

◆ LWS_IO_OPS_ABI_VERSION

#define LWS_IO_OPS_ABI_VERSION   2

Definition at line 58 of file lws-io-ops.h.

Typedef Documentation

◆ lws_io_ops_t

typedef struct lws_io_ops lws_io_ops_t

Enumeration Type Documentation

◆ lws_io_close_phase

Enumerator
LWS_IOCLOSE_QUIESCE 
LWS_IOCLOSE_UNWATCH 
LWS_IOCLOSE_SHUTDOWN 
LWS_IOCLOSE_STAGE 
LWS_IOCLOSE_RELEASE 

Definition at line 64 of file lws-io-ops.h.

64 {
65 LWS_IOCLOSE_QUIESCE, /* nothing of the transport's may act on the
66 * wsi any more: connect attempts and their
67 * timers, dns, the wait for a socket */
68 LWS_IOCLOSE_UNWATCH, /* stop watching the transport, keep it for
69 * the release (a restart follows, or a
70 * file's user hears it close first) */
71 LWS_IOCLOSE_SHUTDOWN, /* stop sending: a tls close_notify when there
72 * is a session, else the write side */
73 LWS_IOCLOSE_STAGE, /* keep the transport until the peer has
74 * finished, and say when it has */
75 LWS_IOCLOSE_RELEASE, /* release it all: tls session, fd, its place
76 * in the poll set */
77};
@ LWS_IOCLOSE_SHUTDOWN
Definition lws-io-ops.h:71
@ LWS_IOCLOSE_QUIESCE
Definition lws-io-ops.h:65
@ LWS_IOCLOSE_UNWATCH
Definition lws-io-ops.h:68
@ LWS_IOCLOSE_RELEASE
Definition lws-io-ops.h:75
@ LWS_IOCLOSE_STAGE
Definition lws-io-ops.h:73

◆ lws_io_path_op

Enumerator
LWS_IOPATH_COMMIT 
LWS_IOPATH_NEW_SOCKET 

Definition at line 84 of file lws-io-ops.h.

84 {
85 LWS_IOPATH_COMMIT, /* the peer is at this address now: report it
86 * as the connection's peer, and aim a
87 * connected socket there if it is not */
88 LWS_IOPATH_NEW_SOCKET, /* move onto a fresh socket (a new local
89 * port) connected to this address, closing
90 * the old; the reported peer is unchanged */
91};
@ LWS_IOPATH_NEW_SOCKET
Definition lws-io-ops.h:88
@ LWS_IOPATH_COMMIT
Definition lws-io-ops.h:85

Variable Documentation

◆ lws_io_ops_default

LWS_VISIBLE LWS_EXTERN_FOR_DATA const lws_io_ops_t lws_io_ops_default

Definition at line 360 of file lws-io-ops.h.