github.com/cbeuw/gotfo@v0.0.0-20180331191851-f2b091af84de/README.md (about)

     1  # TCP Fast Open in Go
     2  TCP Fast Open on Windows 10 (since version 1607) and Linux (since 3.7), go1.8/1.9 only.
     3  
     4  # Usage
     5  ```go
     6  // dial an address with data, it returns a net.Conn
     7  conn, err := gotfo.Dial(address, true, data)
     8  // or dial without fast open
     9  conn, err := gotfo.Dial(address, false, nil)
    10  
    11  // listen with fast open, it returns a net.Listener
    12  listener, err := gotfo.Listen(address, true)
    13  // or listen without fast open
    14  listener, err := gotfo.Listen(address, false)
    15  ```