---
title: " 高性能网络通信框架 HP-Socket v5.2.1"
author: "guaishou"
date: "2018-02-01T10:22:59Z"
tags: ["Socket", "epoll", "iocp"]
categories: ["编程语言"]
slug: "hp-socket-v5-2-1"
draft: false
lastmod: "2018-02-01T10:22:59Z"
id: 2409927
url: "https://guaishou.iteye.com/blog/2409927"
---

[![HP-Socket](http://static.oschina.net/uploads/space/2013/0609/023923_mORT_867443.png "HP-Socket")](https://github.com/ldcsaa/HP-Socket/tree/v1.0.0-for-linux)

- 项目主页 : [http://www.oschina.net/p/hp-socket](http://www.oschina.net/p/hp-socket)
- 开发文档 : [http://www.docin.com/p-2079016612.html](http://www.docin.com/p-2079016612.html)
- 下载地址 : [https://github.com/ldcsaa/HP-Socket](https://github.com/ldcsaa/HP-Socket)
- QQ Group: [75375912](http://shang.qq.com/wpa/qunwpa?idkey=5056a5463f52cac937e0da8a0c313993073294a3dafaeec3724735a030d4e294), [44636872](http://shang.qq.com/wpa/qunwpa?idkey=f5273069775c0c98e43bd4960702b5a9b4812b000771f5a1d3f34c544f3b6d6c)

    HP-Socket提供以下几类组件，详细内容请参考《[HP-Socket网络通信框架开发指南](http://www.docin.com/p-2079016612.html)》：

- Server：基于IOCP / EPOLL通信模型，并结合缓存池、私有堆等技术实现高效内存管理，支持超大规模、高并发通信场景。
- Agent：Agent组件实质上是Multi-Client组件，与Server组件采用相同的技术架构。一个Agent组件对象可同时建立和高效处理大规模Socket连接。
- Client：基于Event Select / POLL通信模型，每个组件对象创建一个通信线程并管理一个Socket连接，适用于小规模客户端场景。

* * *

**v5.2.1 更新**

**一、发布包调整**

1. 版本号修订：Windows 和 Linux 发行版使用统一版本号
2. 发布文件不再区分非 SSL DLL 和 SSL DLL，统一为 HPSocket DLL 和 HPSocket4C DLL
3. 发布文件默认包含 SSL 和 HTTP 组件
4. 如果想去除 SSL 或 HTTP 组件，可以分别定义 \_SSL\_DISABLED 或 \_HTTP\_DISABLED 宏重新编

**二、新增 Linux SSL 组件**

1. Server: SSL Server, SSL Pull Server, SSL Pack Server
2. Agent: SSL Agent, SSL Pull Agent, SSL Pack Agent
3. Client: SSL Client, SSL Pull Client, SSL Pack Client

![](https://static.oschina.net/uploads/space/2017/1214/184411_GHda_867443.jpg)

**三、新增 Linux HTTP 组件**

1. Server: HTTP Server, HTTPS Server
2. Agent: HTTP Agent, HTTP Agent
3. Client: HTTP Client, HTTP Client, HTTP Sync Client, HTTPS Sync Client

![](https://static.oschina.net/uploads/space/2017/1214/184432_B5ga_867443.jpg)

**四、新增 Linux Demo**

1. testecho-ssl: (SRC) SSL simple test echo server/agent/client
2. testecho-ssl-pfm: (SO) SSL performance test echo server/agent/client
3. testecho-ssl-pull: (SO) SSL pull echo server/agent/client
4. testecho-ssl-pack: (4C SO) SSL pack echo server/agent/client
5. testecho-http: (SRC) HTTP simple test echo server/agent/client/sync-client
6. testecho-http-4c: (4C SO) HTTP simple test echo server/agent/client/sync-client

![](https://static.oschina.net/uploads/space/2018/0131/204514_mG3W_867443.jpg)

**五、其它更新**

1. 代码优化和已知 Bug 修复