websockets Documentation
Release 9.0confidentiality and also reliability because they reduce the risk of interference by bad proxies. The WSS protocol is to WS what HTTPS is to HTTP: the connection is encrypted with Transport Layer Security (TLS) {name}!" await websocket.send(greeting) print(f"> {greeting}") ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) localhost_pem = pathlib.Path(__file__).with_name("localhost.pem") ssl_context.load_ certificate import asyncio import pathlib import ssl import websockets ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) localhost_pem = pathlib.Path(__file__).with_name("localhost.pem") ssl_context.load_0 码力 | 81 页 | 352.88 KB | 1 年前3
websockets Documentation
Release 4.0sheet 2.1.1 Server • Write a coroutine that handles a single connection. It receives a websocket protocol instance and the URI path in argument. – Call recv() and send() to receive and send messages at subclass WebSocketServerProtocol and pass either this sub- class or a factory function as the create_protocol argument. 2.1.2 Client • Create a client with connect() which is similar to asyncio’s create_connection() subclass WebSocketClientProtocol and pass either this sub- class or a factory function as the create_protocol argument. • Call recv() and send() to receive and send messages at any time. • You may ping()0 码力 | 48 页 | 224.70 KB | 1 年前3
websockets Documentation
Release 5.0confidentiality and also reliability because they reduce the risk of interference by bad proxies. The WSS protocol is to WS what HTTPS is to HTTP: the connection is encrypted with TLS. WSS requires TLS certificates {name}!" await websocket.send(greeting) print(f"> {greeting}") ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) ssl_context.load_cert_chain( pathlib.Path(__file__).with_name('localhost.pem')) start_server certificate import asyncio import pathlib import ssl import websockets ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ssl_context.load_verify_locations( pathlib.Path(__file__).with_name('localhost.pem'))0 码力 | 56 页 | 245.43 KB | 1 年前3
websockets Documentation
Release 6.0confidentiality and also reliability because they reduce the risk of interference by bad proxies. The WSS protocol is to WS what HTTPS is to HTTP: the connection is encrypted with TLS. WSS requires TLS certificates {name}!" await websocket.send(greeting) print(f"> {greeting}") ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) ssl_context.load_cert_chain( pathlib.Path(__file__).with_name('localhost.pem')) start_server certificate import asyncio import pathlib import ssl import websockets ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ssl_context.load_verify_locations( pathlib.Path(__file__).with_name('localhost.pem'))0 码力 | 58 页 | 253.08 KB | 1 年前3
websockets Documentation
Release 3.4Cheat sheet Server • Write a coroutine that handles a single connection. It receives a websocket protocol instance and the URI path in argument. – Call recv() and send() to receive and send messages at subclass WebSocketServerProtocol and pass either this sub- class or a factory function as the create_protocol argument. Client • Create a client with connect() which is similar to asyncio’s create_connection() subclass WebSocketClientProtocol and pass either this sub- class or a factory function as the create_protocol argument. • Call recv() and send() to receive and send messages at any time. • You may ping()0 码力 | 36 页 | 192.66 KB | 1 年前3
Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 5.1.1. The Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . representations (e.g. Netty ByteBuf, java.nio.ByteBuffer, etc.) and is what all codecs work on. See Data Buffers and Codecs in the "Spring Core" section for more on this topic. The spring-core module provides decoder implementations. The spring-web module provides Jackson JSON, Jackson Smile, JAXB2, Protocol Buffers and other encoders and decoders along with web-only HTTP message reader and writer implementations0 码力 | 182 页 | 2.52 MB | 1 年前3
Using Modern C++ to Build XOffsetDatastructureor object state into a format that can be stored (e.g. files in secondary storage devices, data buffers in primary storage devices) or transmitted (e.g. data streams over computer networks) and reconstructed or object state into a format that can be stored (e.g. files in secondary storage devices, data buffers in primary storage devices) or transmitted (e.g. data streams over computer networks) and reconstructed XOffsetDatastructure, CppCon 2024 252.2 Current Solutions • The 2 Categories • MessagePack, Protocol Buffers, etc. • FlatBuffers, Cap’n Proto, etc. • Input, Output, and Process. // To better understand0 码力 | 111 页 | 3.03 MB | 6 月前3
Reference guide for FCL units. Document version 3.2.2The BlowFish implements a class TBlowFish (125) to handle Blowfish encryption/decryption of memory buffers, and 2 TStream (??) descendents TBlowFishDeCryptStream (126) which decrypts any data that is read PBlobBuffer is a pointer to the TBlobBuffer type. PBlobBuffer is used to allocate and access the buffers for Blob fields (Memo or Graphic field types). PBlobBuffer is used in TBufBlobField, TBufBlobStream TRecordsUpdateBuffer is an array of TRecUpdateBuffer type used to implement an array of update buffers for records in TBufDataset. TResolverErrorEvent = procedure(Sender: TObject; DataSet: TCustomBufDataset;0 码力 | 953 页 | 2.21 MB | 1 年前3
deploying the networking TSback-end communicate with separate protocol Back-end implemented with Asio Queries serviced by proprietary database back-end (written in C++) 4 DataConn TCP protocol without login or encryption Intended using const_buffers_type = /* ... */; using mutable_buffers_type = /* ... */; std::size_t size() const; std::size_t max_size() const; std::size_t capacity() const; const_buffers_type data(std::size_t data(std::size_t pos, std::size_t n) const; mutable_buffers_type data(std::size_t pos, std::size_t n); void grow(std::size_t n); void shrink(std::size_t n); void consume(std::size_t n); }; 10 Limiting0 码力 | 44 页 | 892.77 KB | 6 月前3
waitress Documentation v2.1.1expected because output buffers were being reused across requests on a long-lived connection and each buffer would not be freed until it was full or the connection was closed. Buffers are now rotated per-request closes a socket unexpectedly there was potential for memory leaks in which data was written to the buffers after they were closed, causing them to reopen. See https://github.com/Pylons/waitress/pull/239 Fix app_iter may never cleanup data that has already been sent. This would cause buffers in waitress to grow without bounds. These buffers now properly rotate and release their data. See https://github.com/Pylo0 码力 | 53 页 | 58.27 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













