sock_flush(3z)

πŸ“¦ version 1.10.1, in fedora 43, fedora 44

✨ 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