diff options
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); |