8.3. Application Protocol Implementation

The most enjoyable part of learning network programming is putting the network theory that you've learned into practice, by writing real-life applications that interact with other Internet services or clients. Earlier in this book we covered the theory; now it's time to write some code. In the following sections, we'll examine and code three protocols—SMTP, POP3, and HTTP.

8.3.1. SMTP Client Implementation

The Simple Mail Transfer Protocol is used to send messages of various types between users over a TCP/IP network. It should be noted that this protocol assumes that some other method is used to actually read the messages, thus allowing a more stable, flexible, and robust global e-mail system. By separating ...

Get Java™ Network Programming and Distributed Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.