Add websocket example that supports permessage-deflate extension
This commit is contained in:
parent
71f4609cb5
commit
145479f095
19 changed files with 2175 additions and 1 deletions
11
examples/websocket_mbedtls/conn.h
Normal file
11
examples/websocket_mbedtls/conn.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef CONN
|
||||
#define CONN
|
||||
|
||||
int ConnConnect(char *host, int port);
|
||||
int ConnReadBytesAvailable(int sslHandle);
|
||||
int ConnRead(int sslHandle, void *buf, int num);
|
||||
int ConnWrite(int sslHandle, const void *buf, int num);
|
||||
void ConnClose(int sslHandle);
|
||||
void sleep_ms(int milliseconds);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue