Part 2. Codecs
A network sees data as just a sequence of raw bytes. Our applications, however, structure these bytes in a way that has meaning as information. Converting data to and from the network byte stream is one of the most common programming tasks. You may, for example, need to work with a standard format or protocol such as FTP or Telnet, implement a proprietary binary protocol defined by a third party, or extend a legacy message format created by your own organization.
Components that handle the conversion of application data to and from a network format are called encoders and decoders, respectively, and a single component with both capabilities is referred to as a codec. Netty provides a range of tools for creating all of these, ...
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.