overview

Module Introduction

Introduction to Socket

Source: https://www.liaoxuefeng.com/wiki/1252599548343744/1305207629676577

When developing network applications, we encounter the concept of Socket. Socket is an abstract concept where an application establishes a remote connection through a Socket, and the Socket internally transmits data to the network through the TCP/IP protocol:

Hutool Encapsulation

The JDK provides Socket functionality, including:

  • BIO
  • NIO
  • AIO

Hutool only provides a simple encapsulation of NIO and AIO to simplify asynchronous Socket development.

At this stage, Hutool’s socket encapsulation is still not a complete framework or efficient utility class that can provide complete high-performance IO capabilities. Therefore, more specialized Socket libraries are recommended. For example:

t-io

Voovan

Netty

Mina