Chapter 2 - Basics

In Chapter 1, we had a brief glimpse of Apache MINA. In this chapter we shall have a look at Client/Server Architecture and details on working out a MINA based Server and Client.

We will also expose some very simple Servers and Clients, based on TCP and UDP.

在第一章我们介绍了一下mina。这章我们来了解基本mina的服务端和客户是如何工作的。

我们将简单介绍一下服务端和客户端基于tcp和udp的使用

应用架构

    服务端架构

    客户端架构

简单的tcp服务器

简单的tcp客户端

简单的udp服务器

简单的udp客户端

概要