InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Book Review: C# Network Programming

Posted by Jonathan Allen on Oct 09, 2008

Sections
Development
Topics
.NET
Tags
C#

Normally we review new books, but occasionally an older book is just too good to ignore. Richard Blum's C# Network Programming is one such book. Focusing on low-level network programming, this book is just as applicable today as it was when .NET 1.0 was new. And though titled "C#", this book is applicable to any .NET language.

The first chapter is the seemingly obligatory introduction to C#. This should be ignored by everyone, as it is not enough to teach C# from ground zero and the chapter is common knowledge for everyone else.

Next up is IP Programming Basics. If all you know about network programming is that it is important, this is a good place to start. Ranging from its roots in UNIX programming, this chapter touches on all of the points you would expect to see covered in a college level course on sockets and TCP/IP. And while it does not go into excessive depth, it does give the reader a solid background and the vocabulary needed for further research.

For those of you who already know how to read a UDP packet header, chapter 3 is your starting point. This provides an introduction to network programming with .NET and serves as the basis for the rest of book. Even if you already know all the classes in the System.Network namespace, this chapter is still worth reading.

Chapter 4 goes into how DNS works, and is probably contains more information than most people need.

Part II, chapters 5 thru 10, are all technique specific. Briefly they are in order, Connection-Oriented Sockets, Connectionless Sockets, the Sockets Helper Classes, Asynchronous Sockets, Threads, and IP Multicasting.

Part III covers higher level protocols including ICMP, SNMP, SMTP, and HTTP. When possible, the author presents the pre-built .NET classes for using these protocols. For the ones not built-in like POP3, the author presents instructions to build your own.

All in all this book is a must have for anyone doing network programming in .NET.

C# Network Programming
Richard Blum

No comments

Watch Thread Reply

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.