Skip to Content
TCP/IP Sockets in Java, 2nd Edition
book

TCP/IP Sockets in Java, 2nd Edition

by Kenneth L. Calvert, Michael J. Donahoo
August 2011
Intermediate to advanced
192 pages
4h 46m
English
Morgan Kaufmann
Content preview from TCP/IP Sockets in Java, 2nd Edition

Chapter 3. Sending and Receiving Data

Typically you use sockets because your program needs to provide information to, or use information provided by, another program. There is no magic: any programs that exchange information must agree on how that information will be encoded— represented as a sequence of bits—as well as which program sends what information when, and how the information received affects the behavior of the program. This agreement regarding the form and meaning of information exchanged over a communication channel is called a protocol;a protocolusedin implementing a particular application is an application protocol. In our echo example from the earlier chapters, the application protocol is trivial: neither the client’s nor the server’s ...

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

TCP/IP Sockets in C, 2nd Edition

TCP/IP Sockets in C, 2nd Edition

Michael J. Donahoo, Kenneth L. Calvert

Publisher Resources

ISBN: 9780080568782