Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (34 loc) · 603 Bytes

tcp.md

File metadata and controls

39 lines (34 loc) · 603 Bytes

TCP

TCP is used as the default transport protocol. No configuration is needed. And there is no other options for it.

On linux, zero-copy is enabled.

position

endpoint->listen|remote->net->tcp

example

use default value: net = tcp, transport = plain, tls = none

{
  "endpoints": [
    {
      "listen": "0.0.0.0:5000",
      "remote": "example.com:443"
    }
  ]
}

equals

{
  "endpoints": [
    {
      "listen": {
        "addr": "0.0.0.0:5000",
        "net": "tcp"
      },
      "remote": {
        "addr": "0.0.0.0:5000",
        "net": "tcp"
      }
    }
  ]
}