diff options
| author | cbdev <cb@cbcdn.com> | 2019-05-25 15:57:20 +0200 |
|---|---|---|
| committer | cbdev <cb@cbcdn.com> | 2019-05-25 15:57:20 +0200 |
| commit | 20323140f55607d51199af8060b3d971451ae262 (patch) | |
| tree | c0a20433ce5510e54d9fd2c222bb59fa5d570a46 /network.h | |
| parent | 79e063d6aa6116231fdfb374f52507236ca3770e (diff) | |
| download | websocksy-20323140f55607d51199af8060b3d971451ae262.tar.gz websocksy-20323140f55607d51199af8060b3d971451ae262.tar.bz2 websocksy-20323140f55607d51199af8060b3d971451ae262.zip | |
Implement pongs, move to multiple TLUs
Diffstat (limited to 'network.h')
| -rw-r--r-- | network.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/network.h b/network.h new file mode 100644 index 0000000..50c8e18 --- /dev/null +++ b/network.h @@ -0,0 +1,7 @@ +#include <stdint.h> +#include <stdlib.h> + +/* Socket interface convenience functions */ +int network_socket(char* host, char* port, int socktype, int listener); +int network_send(int fd, uint8_t* data, size_t length); +int network_send_str(int fd, char* data); |
