Chapter 23. Networking: Streams-Based Sockets and Datagrams


If the presence of electricity can be made visible in any part of a circuit, I see no reason why intelligence may not be transmitted instantaneously by electricity.

Samuel F. B. Morse

What networks of railroads, highways and canals were in another age, the networks of telecommunications, information and computerization ... are today.

Bruno Kreisky

The port is near, the bells I hear, the people all exulting.

Walt Whitman

Protocol is everything.

Francois Giuliani

Objectives

In this chapter you will learn:

  • To implement networking applications that use sockets and datagrams.

  • To implement clients and servers that communicate with one another.

  • To implement network-based collaborative applications.

  • To construct a multithreaded server.

  • To use the WebBrowser class to add Web browsing capabilities to any application.

  • To use .NET remoting to enable an application executing on one computer to invoke methods from an application executing on a different computer.

Outline

23.1 Introduction

23.2 Connection-Oriented vs. Connectionless Communication

23.3 Protocols for Transporting Data

23.4 Establishing a Simple TCP Server Using Stream Sockets

23.5 Establishing a Simple TCP Client Using Stream Sockets

23.6 Client/Server Interaction with Stream-Socket Connections

23.7 Connectionless Client/Server Interaction with Datagrams

23.8 Client/Server Tic-Tac-Toe Using a Multithreaded Server

23.9 WebBrowser Class

23.10 .NET Remoting

23.11 Wrap-Up



Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net