/c-sockets

Socket programming with TCP/UDP in C

🔌 Socket Programming in C 🔌

🚧 Work in Progress 🚧

This repo is a guide to socket programming in C and the fundamentals of computer networking.

Network Programming: Building a program that receives and transmits data between two or more computers by means of a network

Table of Contents

  1. Introduction to Networking: Internet Protocol (IP) and the Protocol Stack 📚
  2. Introduction to Socket Programming 🔌

Code Examples / Demos

To see a demo in action you can clone this repo and navigate to the directory of the example. Then use make to compile the relevant programs:

git clone https://github.com/jaqarrick/c-sockets.git

cd c-sockets/examples/some-example-directory

make
  1. Basic TCP Client / Server

Attribution

Each chapter in this guide references its relevant sources.