Skip to Content
Beginning Visual C#® 2005
book

Beginning Visual C#® 2005

by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White
November 2005
Beginner
1104 pages
28h 36m
English
Wrox
Content preview from Beginning Visual C#® 2005

29

Networking

Chapter 20 dealt with Web services, describing how to send messages from the client to the server in a platform-independent way with the SOAP protocol. In this chapter, you step into lower networking layers, programming with classes from the namespace System.Net. Web services itself uses this technology.

This chapter begins with an overview of programming client and server applications with classes from the namespaces System.Net and System.Net.Sockets, which make use of protocols such as HTTP, TCP, and UDP. You will cover both connection-oriented applications with TCP and connection-less applications with the UDP protocol.

In this chapter, you learn about:

  • An overview of networking
  • Networking programming options
  • Using WebRequest
  • TcpListener and TcpClient
  • Socket programming

Networking Overview

Networking is about communicating with applications on other systems. The communication happens by sending messages. Messages can be sent to a single system where a connection is initiated before the message, as shown in Figure 29-1, or messages can be sent to multiple systems by a broadcast, as shown in Figure 29-2. With a broadcast, connections are not initiated, the messages are just sent to the network instead.

Networking can be best illustrated by showing the seven OSI layers. Figure 29-3 shows the stack of the OSI layers with their corresponding TCP/IP layers. Often the layers are also defined by numbers that are simply increments of the layers from bottom, where the ...

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

Beginning Visual C# 2010

Beginning Visual C# 2010

Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon Reid, Morgan Skinner
Professional C# 2008

Professional C# 2008

Christian Nagel, Bill Evjen, Jay Glynn, Morgan Skinner, Karli Watson
Professional C# 2005

Professional C# 2005

Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones

Publisher Resources

ISBN: 9780764578472Purchase bookDownloads