Chapter 2. Your first Netty application

This chapter covers

  • Setting up the development environment
  • Writing an Echo server and client
  • Building and testing the applications

In this chapter we’ll show you how to build a Netty-based client and server. The applications are simple—the client sends messages to the server, and the server echoes them back—but the exercise is important for two reasons.

First, it will provide a test bed for setting up and verifying your development tools and environment, which is essential if you plan to work with the book’s sample code in preparation for your own development efforts.

Second, you’ll acquire hands-on experience with a key aspect of Netty, touched on in the previous chapter: building application ...

Get Netty in Action 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.