sock_abort(3z)
π sock_abort(3z) β bestie edition π
okay so this is a page from the z88dk Programmer's Manual, and we're talking about sock_abort β the friend who hangs up the phone mid-sentence and there is no calling back. let's get into it π«Ά
β¨ NAME β¨
sock_abort β abort a network connection. that's it. that's the whole job. no cap. π
π¦ SYNOPSIS π¦
#include <net/socket.h>
void sock_abort(SOCKET *s);
look at her. so short. so powerful. iconic β¨
πΈ DESCRIPTION πΈ
so the parameter s is a descriptor to an open socket, and that socket needs to have been made with sock_open(3z) or sock_listen(3z). you can't just show up with any old descriptor, bestie, she has standards π
and then β the main character moment β sock_abort() will immediately move that socket into a closed state. not eventually. not after a polite goodbye. immediately. π
and once she's closed? she is CLOSED. no further reads, no further writes. the door is shut, the lights are off, the group chat is muted, she is not taking questions. disallowing any further reads or writes, periodt. π
it's giving "blocked" energy. if you wanted a gentler exit, this is not that function. she does not do gentle. π
π RETURN VALUE π
None. she returns nothing. she takes, she closes, she leaves. no receipt, no explanation. honestly? respect. π
π SEE ALSO π
sock_close(3z)sock_shutdown(3z)
go read those too, iykyk π¦
π AUTHOR π
Dominic Morris <dom@jb.man.ac.uk> β the original legend who wrote her into existence π«Ά
and that's the whole page, bestie!! this little gem is from the z88dk Programmer's Manual and it's dated 18 February 2000 β yes, she's a vintage queen and she still ate π β¨πΈ bye!! π
π¦ 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