介绍

原文连接  https://ninenines.eu/docs/en/ranch/1.4/guide/introduction/编程

 

Introduction

 

Ranch is a socket acceptor pool for TCP protocols.app

Ranch 是一个TCP协议的套接字接收器池。socket

 

Ranch aims to provide everything you need to accept TCP connections with a small code base and low latency while being easy to use directly as an application or to embed into your own.ide

Ranch 旨在经过较少的基础代码实现你须要的拥有较低延迟且能接受TCP链接的一切,同时它也易于直接做为应用程序使用或者嵌入到本身的项目中使用。测试

 

Prerequisites

先决条件

 

It is assumed the developer already knows Erlang and has some experience with socket programming and TCP protocols.ui

假设开发人员已经知道Erlang,并对socket编程和TCP协议有一些经验。spa

 

Supported platforms

支持平台

 

Ranch is tested and supported on Linux, FreeBSD, OSX and Windows.code

Ranch在Linux,FreeBSD,OSX和Windows上都测试过并获得支持。orm

 

Ranch is developed for Erlang/OTP R16B+.开发

Ranch 是为Erlan/OTP R16B+开发的。

 

There are known issues with the SSL application found in Erlang/OTP 18.3.2 and 18.3.3. These versions are therefore not supported.

Erlang/OTP 18.3.2和18.3.3中的SSL应用程序存在已知的问题,所以,这些版本不被Ranch支持。

 

Ranch may be compiled on earlier Erlang versions with small source code modifications but there is no guarantee that it will work as expected.、

Ranch可能只须要对源码进行少数修改就能够在较早的Erlang版本上编译经过,但不能保证它能按预期工做。

 

Versioning

版本管理

 

Ranch uses Semantic Versioning 2.0.0

Ranch使用语义化版本2.0.0来进行版本描述。