libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws_transport_client_ops Struct Reference

#include <lws-secure-streams-serialization.h>

Collaboration diagram for lws_transport_client_ops:

Data Fields

const char * name
int(* event_retry_connect )(lws_txp_path_client_t *path, struct lws_sspc_handle *h)
lws_ss_state_return_t(* event_connect_disposition )(struct lws_sspc_handle *h, int disposition)
void(* req_write )(lws_transport_priv_t priv)
int(* _write )(lws_transport_priv_t priv, uint8_t *buf, size_t len)
lws_ss_state_return_t(* event_read )(lws_transport_priv_t priv, const uint8_t *buf, size_t len)
void(* lost_coherence )(lws_transport_priv_t priv)
void(* _close )(lws_transport_priv_t priv)
void(* event_stream_up )(lws_transport_priv_t priv)
void(* event_client_up )(lws_transport_priv_t priv)
lws_ss_state_return_t(* event_can_write )(struct lws_sspc_handle *h, size_t metadata_limit)
lws_ss_state_return_t(* event_closed )(lws_transport_priv_t priv)
uint32_t flags
uint32_t dsh_splitat

Detailed Description

Definition at line 354 of file lws-secure-streams-serialization.h.

Field Documentation

◆ name

const char* lws_transport_client_ops::name

Definition at line 355 of file lws-secure-streams-serialization.h.

◆ event_retry_connect

int(* lws_transport_client_ops::event_retry_connect) (lws_txp_path_client_t *path, struct lws_sspc_handle *h)

Attempt to create a new connection / channel to the proxy

Definition at line 357 of file lws-secure-streams-serialization.h.

◆ event_connect_disposition

lws_ss_state_return_t(* lws_transport_client_ops::event_connect_disposition) (struct lws_sspc_handle *h, int disposition)

Connection attempt result, disposition 9 = success, else failed

Definition at line 360 of file lws-secure-streams-serialization.h.

◆ req_write

void(* lws_transport_client_ops::req_write) (lws_transport_priv_t priv)

Request a write to the proxy on this channel

Definition at line 363 of file lws-secure-streams-serialization.h.

◆ _write

int(* lws_transport_client_ops::_write) (lws_transport_priv_t priv, uint8_t *buf, size_t len)

Write the requested data on the channel to the proxy *** MUST have LWS_PRE usable behind buf

Definition at line 365 of file lws-secure-streams-serialization.h.

◆ event_read

lws_ss_state_return_t(* lws_transport_client_ops::event_read) (lws_transport_priv_t priv, const uint8_t *buf, size_t len)

len bytes at buf have been received

Definition at line 368 of file lws-secure-streams-serialization.h.

◆ lost_coherence

void(* lws_transport_client_ops::lost_coherence) (lws_transport_priv_t priv)

report that the framing inside the mux channel is broken

Definition at line 371 of file lws-secure-streams-serialization.h.

◆ _close

void(* lws_transport_client_ops::_close) (lws_transport_priv_t priv)

Close the channel to the proxy

Definition at line 373 of file lws-secure-streams-serialization.h.

◆ event_stream_up

void(* lws_transport_client_ops::event_stream_up) (lws_transport_priv_t priv)

Called when a new channel to the proxy is acknowledged as up

Definition at line 375 of file lws-secure-streams-serialization.h.

◆ event_client_up

void(* lws_transport_client_ops::event_client_up) (lws_transport_priv_t priv)

Called when a client channel is acknowledged as up

Definition at line 377 of file lws-secure-streams-serialization.h.

◆ event_can_write

lws_ss_state_return_t(* lws_transport_client_ops::event_can_write) (struct lws_sspc_handle *h, size_t metadata_limit)

Called when possible to write on the transport, after req_write

Definition at line 379 of file lws-secure-streams-serialization.h.

◆ event_closed

lws_ss_state_return_t(* lws_transport_client_ops::event_closed) (lws_transport_priv_t priv)

we notice an onward proxy connection had closed

Definition at line 382 of file lws-secure-streams-serialization.h.

◆ flags

uint32_t lws_transport_client_ops::flags

Used for DSH creation flags

Definition at line 384 of file lws-secure-streams-serialization.h.

◆ dsh_splitat

uint32_t lws_transport_client_ops::dsh_splitat

Definition at line 386 of file lws-secure-streams-serialization.h.


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