On its own, C# simplifies network programming. Combine it with the
precise instruction found in C# Network Programming, and you’ll
find that building network applications is easier and quicker than
ever.
This book helps newcomers get started with a look at the basics
of network programming as they relate to C#, including the
language’s network classes, the Winsock interface, and DNS
resolution. Spend as much time here as you need, then dig into the
core topics of the network layer. You’ll learn to make sockets
connections via TCP and ‚connectionless‘ connections via UDP.
You’ll also discover just how much help C# gives you with some of
your toughest chores, such as asynchronous socket programming,
multithreading, and multicasting.
Network-layer techniques are just a means to an end, of course,
and so this book keeps going, providing a series of detailed
application-layer programming examples that show you how to work
with real protocols and real network environments to build and
implement a variety of applications. Use SNMP to manage network
devices, SMTP to communicate with remote mail servers, and HTTP to
Web-enable your applications. And use classes native to C# to query
and modify Active Directory entries.
Rounding it all out is plenty of advanced coverage to push your
C# network programming skills to the limit. For example, you’ll
learn two ways to share application methods across the network:
using Web services and remoting. You’ll also master the security
features intrinsic to C# and .NET–features that stand to benefit
all of your programming projects.
Inhaltsverzeichnis
Introduction xix
Part 1 Network Programming Basics
Chapter 1: The C# Language 3
Chapter 2: IP Programming Basics 41
Chapter 3: C# Network Programming Classes 87
Chapter 4: DNS and C# 125
Part 2 Network Layer Programming
Chapter 5: Connection-Oriented Sockets 167
Chapter 6: Connectionless Sockets 209
Chapter 7: Using The C# Sockets helper classes 249
Chapter 8: Asynchronous Sockets 291
Chapter 9: Using Threads 333
Chapter 10: IP Multicasting 375
Part 3 Application Layer Programming Examples
Chapter 11: ICMP 411
Chapter 12: SNMP 441
Chapter 13: SMTP 477
Chapter 14: HTTP 511
Über den Autor
Richard Blum has been a network specialist with the U.S. Department of Defense for more than 13 years and has programmed in C, C++, Java, and C#. He has also volunteered for a nonprofit organization, doing network administration and support. He has written four books for SAMS on networking topics, such as sendmail for Linux and open-source email security.