rawsock -> ethsock
[oweals/nmrpflash.git] / ethsock.h
1 #include <stdint.h>
2
3 struct ethsock;
4
5 struct ethsock *ethsock_create(const char *interface, uint16_t protocol);
6 int ethsock_close(struct ethsock *sock);
7 int ethsock_send(struct ethsock *sock, void *buf, size_t len);
8 ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len);
9 int ethsock_set_timeout(struct ethsock *sock, unsigned msec);