2
0
mirror of https://github.com/soheilhy/cmux.git synced 2026-08-09 16:17:59 +08:00

Use a custom buffer intead of buffers from bytes

This commit implements a new buffer that eliminates a few copies.
This commit is contained in:
Soheil Hassas Yeganeh
2015-08-01 11:58:14 -04:00
parent 77815df398
commit fbd0877935
4 changed files with 120 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
# cmux: Connection Mux ![Travis Build Status](https://api.travis-ci.org/soheilhy/args.svg?branch=master "Travis Build Status") [![GoDoc](https://godoc.org/github.com/soheilhy/cmux?status.svg)](http://godoc.org/github.com/soheilhy/cmux)
cmux is a generic Go library to multiplex connections based on
their payload. Using cmux, you can serve gRPC, HTTP, and Go RPC
on the same TCP listener to avoid using one port per
their payload. Using cmux, you can serve gRPC, SSH, HTTPS, HTTP,
and Go RPC on the same TCP listener to avoid using one port per
protocol.
## How-To