sock_flush(3z)
β¨ NAME β¨
sock_flush β bestie, it flushes a network connection π
πΈ SYNOPSIS πΈ
#include <net/socket.h>
void sock_flush(SOCKET *s);
π¦ DESCRIPTION π¦
okay so the parameter s? That's a descriptor to an open socket, and you make those with sock_open(3z) or sock_listen(3z). Also, your socket should be of type prot_TCP. like, that's the vibe it needs to be, no cap.
So what does sock_flush() actually do? It depends on the state of the connection, bestie. Depending on that state, it will either:
- immediately send any pending data that's chilling in the socket buffer, or
- flag that data for sending in the next timer call
Either way the data is getting handled, it's just about when. Iconic honestly. π
π RETURN VALUE π
None. That's it. Nothing comes back. She returns nothing and she's at peace with that. π
π AUTHOR π
Dominic Morris <dom@jb.man.ac.uk>
This lil page came from the z88dk Programmer's Manual, and it's dated 18 February 2000 β yeah she's an elder but she still slays β¨π
π¦ where this page comes from
- fedora 43: z88dk 1.10.1-33.20150709cvs.fc43 Β· ClArtistic
- fedora 44: z88dk 1.10.1-33.20150709cvs.fc43 Β· ClArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms