diff options
author | 2019-05-29 13:03:49 +0300 | |
---|---|---|
committer | 2019-05-29 13:03:49 +0300 | |
commit | 187fe61700fc97fff565ec53aac65c664042feae (patch) | |
tree | 498d0c00af96c4f666b4ef4dbb6db0966a485852 /include/net.h | |
parent | aef4eba5572d6b42f8ef2913ec41c0e778731960 (diff) | |
download | usurpation-187fe61700fc97fff565ec53aac65c664042feae.tar.gz usurpation-187fe61700fc97fff565ec53aac65c664042feae.tar.bz2 usurpation-187fe61700fc97fff565ec53aac65c664042feae.zip |
daemon: get ready to use messaging interfaces.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 02767dc..8385943 100644 --- a/include/net.h +++ b/include/net.h @@ -22,7 +22,11 @@ #ifndef USURPATION_NET_H_INCLUDED #define USURPATION_NET_H_INCLUDED +#ifdef unix +#include <sys/socket.h> #include <netinet/in.h> +#endif + #include <stddef.h> #define MTU 1500 @@ -51,6 +55,9 @@ int net_close(int nd); */ int net_getlastdata(int nd, char ** const data); int net_send(int nd, const char * const buf, size_t buf_size); + +#ifdef unix int net_send_addr(int nd, const char * const buf, size_t buf_size, const struct sockaddr_in * const addr); +#endif #endif /* USURPATION_NET_H_INCLUDED */ |