CHAPTER 9

A Simple Implementation

This chapter shows how a simple TCP/IP stack could be developed. In order to make the exercise useful, the text contains many descriptions on how the modules can be expanded or simplified as necessary. The sections of code shown here are not a complete off the shelf solution, but a set of building blocks. The emphasis is on understanding the techniques and limitations rather than supplying pages and pages of ready-made code. This should allow the reader to understand what is going on, and to have the confidence and expertise to add extra facilities or modify the code as required.

The modules handle ARP, ICMP (ping), UDP (block mode) and TCP (stream mode). UDP received data is passed in block mode to a user function. ...

Get TCP/IP Embedded Internet Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.