O'Reilly logo

TCP/IP Sockets in C# by Kenneth L. Calvert, Michael J. Donahoo, David Makofske

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3 Sending and Receiving Messages

When writing programs to communicate via sockets, you will generally be implementing an application protocol of some sort. Typically you use sockets because your program needs to provide information to, or use information provided by, another program. There is no magic: Sender and receiver must agree on how this information will be encoded, who sends what information when, and how the communication will be terminated. In our echo example, the application protocol is trivial: neither the client’s nor the server’s behavior is affected by the contents of the bytes they exchange. Because most applications require that the behaviors of client and server depend upon the information they exchange, application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required