diff options
author | cbdev <cb@cbcdn.com> | 2019-06-20 15:29:10 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-06-20 15:29:10 +0200 |
commit | e80367b0535a1800d0f95078d77ae735528e2523 (patch) | |
tree | a6bc1e3eb1ee0bc442e3fe22cc39928ca6a472d1 /websocksy.h | |
parent | dbfdc815481871632a7e8f6dd3fe9448101263c9 (diff) | |
download | websocksy-e80367b0535a1800d0f95078d77ae735528e2523.tar.gz websocksy-e80367b0535a1800d0f95078d77ae735528e2523.tar.bz2 websocksy-e80367b0535a1800d0f95078d77ae735528e2523.zip |
Fix README
Diffstat (limited to 'websocksy.h')
-rw-r--r-- | websocksy.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/websocksy.h b/websocksy.h index a97784b..64dcc8d 100644 --- a/websocksy.h +++ b/websocksy.h @@ -79,11 +79,11 @@ typedef struct /*_ws_http_header*/ { * * separator: Separate binary frames on a sequence of bytes * * newline: Forward text frames separated by newlines (\r\n) * - * The separator function is called once for every succesful read from the peer socket and called + * The separator function is called once for every successful read from the peer socket and called * again when it indicates a frame boundary but there is still data in the buffer. - * The `framing_data` pointer can be used to store protocol-dependent data on a per-connection basis. + * The `framing_data` pointer can be used to store data on a per-connection basis. * If the pointer is nonzero when the connection is terminated, the function will be called with a - * NULL `data` pointer as an indication the any allocation within `framing_data` is to be freed. + * NULL `data` pointer as an indication that any allocation within `framing_data` is to be freed. * The return value is the number of bytes to be sent to the peer. */ typedef int64_t (*ws_framing)(uint8_t* data, size_t length, size_t last_read, ws_operation* opcode, void** framing_data, const char* config); |