Skip to content
Trustin Lee edited this page Nov 7, 2013 · 44 revisions

Get started with the user guide and the API reference. Also, join the community to get more information.

3rd-party Articles

We often find there are people in the world who are much more talented in technical writing than we, and they kindly wrote great articles for the community.

Examples

There are several examples to help your experience with Netty. It is recommended to start from the first one and to finish to the last one. You also might want to browse the complete list of examples (3.6 and 4.0.)

Examples for version 3.6

Fundamental

  • Echo - the very basic client and server
  • Discard - prevent OutOfMemoryError which is caused by writing too fast
  • UpTime - implement reliable client-side reconnection

Text protocols

  • Telnet - a classic line-based network application
  • Quote of the Moment - broadcast UDP/IP client and server
  • SecureChat - an SSL-based chat server derived from the Telnet example

Binary protocols

  • ObjectEcho - exchange serializable Java objects
  • Factorial - write a stateful client / server based on custom binary protocol
  • LocalTime - rapid protocol prototyping with Google Protocol Buffers integration

HTTP

  • HTTP (Snoop) - build your own extremely light-weight HTTP client and server
  • HTTP (File Server) - asynchronous large file streaming in HTTP
  • Web Socket Client & Server - add two-way full-duplex communication channels to HTTP using Web Sockets protocol

Advanced

Examples for version 4.0

Fundamental

  • Echo - the very basic client and server
  • Discard - prevent OutOfMemoryError which is caused by writing too fast
  • UpTime - implement reliable client-side reconnection

Text protocols

  • Telnet - a classic line-based network application
  • Quote of the Moment - broadcast UDP/IP client and server
  • SecureChat - an SSL-based chat server derived from the Telnet example

Binary protocols

  • ObjectEcho - exchange serializable Java objects
  • Factorial - write a stateful client / server based on custom binary protocol
  • WorldClock - rapid protocol prototyping with Google Protocol Buffers integration

HTTP

  • HTTP (Snoop) - build your own extremely light-weight HTTP client and server
  • HTTP (File Server) - asynchronous large file streaming in HTTP
  • Web Socket Client & Server - add two-way full-duplex communication channels to HTTP using Web Sockets protocol

Advanced

UDT