Skip to content
Trustin Lee edited this page Dec 22, 2013 · 66 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 (5.x, 4.x, and 3.x)

Examples for version 3.x

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.x

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

Examples for version 5.x

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