sock_shutdown(3z)
π sock_shutdown(3z) β the z88dk girlies' guide to yeeting a socket π
okay so bestie, this one lives in the z88dk Programmer's Manual and it's literally the "and that's on periodt, goodbye" of the networking world. it's giving cleanup era. let's get into it π«Ά
β¨ NAME β¨
sock_shutdown β abort a network connection π
like, no cap, that's the whole job. the socket is DONE. the connection is cancelled. main character exits stage left. π
β¨ SYNOPSIS β¨
#include <net/socket.h>
void sock_close(SOCKET *s);
ngl the synopsis is showing you sock_close up there and not sock_shutdown, which is a little iconic of it, but that's exactly what the page says so we're keeping it, bestie. no editing the lore. π
β¨ DESCRIPTION β¨
so the parameter s is a descriptor to an open socket that you made with sock_open(3z) or sock_listen(3z). that's the vibe. that's the entry requirement. π
then sock_shutdown() comes in and wipes all trace of the socket s from the system. all of it. gone. not a crumb left. it's giving "we were never here" energy β¨
π¨ real talk though: you should be preceded by either asock_close(3z)or asock_abort(3z)depending on the circumstances. like, do the polite close or the dramatic abort FIRST, and then letsock_shutdown()do its thing. iykyk. don't skip the step. π
β¨ RETURN VALUE β¨
None. that's it. nothing. silence. no return value, no drama, just pure β¨voidβ¨ energy. π
β¨ SEE ALSO β¨
sock_close(3z)πsock_abort(3z)π₯
β¨ AUTHOR β¨
Dominic Morris <dom@jb.man.ac.uk> β the actual legend who wrote this. π give them their flowers fr fr πΈ
omg and that's the whole page bestie!! this fine piece of documentation is from the z88dk Programmer's Manual, dated 18 February 2000 β an absolute vintage icon, and yes, it ate. periodt. π β¨π¦
π¦ 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