aboutsummaryrefslogtreecommitdiff
path: root/network.h
blob: 9a1cfeeb6fcf446fa21a44f763fbd6a3965f10b0 (plain)
1
2
3
4
5
6
7
8
#include <stdint.h>
#include <stdlib.h>

/* Socket interface convenience functions */
int network_socket(char* host, char* port, int socktype, int listener);
int network_socket_unix(char* path, int socktype, int listener);
int network_send(int fd, uint8_t* data, size_t length);
int network_send_str(int fd, char* data);