wss
10 items · generated by scribe fromstdlib/wss.fd· synced 2026-11-15
Contents
- wss_connect (function)
- wss_connect_unchecked (function)
- wss_accept (function)
- ws_url_part (function)
- ws_connect_url (function)
wss_connect
Client: TLS to host:port (its certificate checked against the system’s store and host), then the Upgrade handshake for path. A WsConn with fd < 0 on failure.
pub fn wss_connect(host: str, port: i64, path: str) -> WsConn {Parameters:
host:strport:i64path:str
Returns: WsConn
Defined at line 46
wss_connect_unchecked
As wss_connect, but accept any certificate. For tests of a local server only: it does not know whom it is talking to.
pub fn wss_connect_unchecked(host: str, port: i64, path: str) -> WsConn {Parameters:
host:strport:i64path:str
Returns: WsConn
Defined at line 57
wss_accept
Server: the TLS handshake on the accepted socket fd with the server credentials creds (tls_server), then the client’s Upgrade request and the 101 answer. A WsConn with fd < 0 on failure.
pub fn wss_accept(creds: i64, fd: i64) -> WsConn {Parameters:
creds:i64fd:i64
Returns: WsConn
Defined at line 69
ws_url_part
The parts of a ws:// or wss:// URL: 0 scheme, 1 host, 2 port, 3 path.
pub fn ws_url_part(url: str, part: i64) -> str {Parameters:
url:strpart:i64
Returns: str
Defined at line 83
ws_connect_url
Connect to a ws:// or wss:// URL. A WsConn with fd < 0 on failure (or another scheme).
pub fn ws_connect_url(url: str) -> WsConn {Parameters:
url:str
Returns: WsConn
Defined at line 132
Generated by scribe, the Fides documentation generator