r/C_Programming • u/Loud-Imagination2591 • Mar 10 '26
Socket Programming
Hello fellow programmers I'd like to start my day one of socket Programming today, any learning resources you guys would know about or have used?
49
Upvotes
52
u/[deleted] Mar 10 '26
https://beej.us/guide/bgnet
Is pretty good
23
u/non-existing-person Mar 10 '26
You think you can do socket programming (or any kind of programming) without knowing how to use a search engine? Like, the first result in search engine was
https://www.reddit.com/r/C_Programming/comments/1eoyhl6/any_good_learning_resources_for_c_sockets/
5
u/eruciform Mar 10 '26
Stevens' unix network programming was where I started, after advanced programming in a unix environment by same author
3
u/Boreddad13 Mar 10 '26
Beej’s guide to network programming is a good place to start. If you want a really good real life example, check out anet.c in redis’ codebase
3
u/HalfTryhardSqr Mar 10 '26
Beej’s guide is incredibly good, and there is a reason 90% of people links it.
2
u/nerd_programmer11 Mar 11 '26
Beej's guide to network programming to get started.
Linux programming interface (book) has some chapters on sockets as well
1
u/Weshmek Mar 10 '26
https://sourceware.org/glibc/manual/latest/html_mono/libc.html#Sockets
0
u/DaCurse0 Mar 10 '26
what exactly do you expect resources to teach besides basic use of whatever os api? once you understand how to create a client socket and server socket just try to make something