GitHub - skullchap/fnet: fnet - FILE* over your socks. Easily create and handle your network sockets.
fnet - FILE* over your socks.
Create, send and receive data over your tcp, udp and unix sockets with familiar C standard library FILE* IO interface.
NetConn *c = fnetdial("tcp", "127.0.0.1:9999");
fprintf(fnetf(c), "hello!\n");
Dial/Listen should be familiar to Plan9'ers and Gophers.
NetConn* fnetdial(char *proto, char *addr);
NetConn* fnetlisten(char *proto, char *addr);
NetConn* fnetaccept(NetConn*);
char* fneterr(void);
FILE* fnetf(NetConn*);
char* fnetlocaddr(NetConn*);
char* fnetremaddr...
Read more at github.com