This week's book giveaways are in the Cloud and AI/ML forums. We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line! See this thread and this one for details.
It sounds like you are in need of a good beginners book. Didn't this class have C as a prereq? A Book on C is an outstanding book that covers ANSI C. And as noted, Unix Network Programming is the definitive networking book, although it actually expects the reader to be comfortable in the basics of C, which is more then fair.
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra