Skip to Content
TCP/IP Sockets in C, 2nd Edition
book

TCP/IP Sockets in C, 2nd Edition

by Michael J. Donahoo, Kenneth L. Calvert
March 2009
Intermediate to advanced content levelIntermediate to advanced
216 pages
5h 20m
English
Morgan Kaufmann
Content preview from TCP/IP Sockets in C, 2nd Edition

Chapter 2 Basic TCP Sockets

It’s time to learn about writing your own socket applications. We’ll start with TCP. By now you’re probably ready to get your hands dirty with some actual code, so we begin by going through a working example of a TCP client and server. Then we present the details of the socket API used in basic TCP. To keep things simpler, we’ll present code initially that works for one particular version of IP: IPv4, which at the time this is being written is still the dominant version of the Internet Protocol, by a wide margin. At the end of this chapter we present the (minor) modifications required to write IPv6 versions of our clients and servers. In Chapter 3 we will demonstrate the creation of protocol-independent applications. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

TCP/IP Sockets in C#

TCP/IP Sockets in C#

David Makofske, Michael J. Donahoo, Kenneth L. Calvert

Publisher Resources

ISBN: 9780080923215