Fnet
fnet - FILE* over your socks. Easily create and handle your network sockets.
Install / Use
/learn @skullchap/FnetREADME
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(NetConn*);
void fnetclose(NetConn*);
Check examples of dialing and listening.
cd examples/
./compile dial && ./compile listen
# ./listen tcp 127.0.0.1:9999 # ./dial tcp 127.0.0.1:9999
License
MIT
Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.5kCommit, push, and open a PR
