grayscott

Results 15 comments of grayscott

func (r *Reply) WriteTo(w io.Writer) (int64, error) { var n int i, err := w.Write([]byte{r.Ver, r.Rep, r.Rsv, r.Atyp}) n = n + i if err != nil { return int64(n),...

you write associate ack data in three time, client will read loss data

func (r *Reply) WriteTo(w io.Writer) (int64, error) { var n int buffer := bytes.NewBuffer([]byte{r.Ver, r.Rep, r.Rsv, r.Atyp}) buffer.Write(r.BndAddr) buffer.Write(r.BndPort) i, err := w.Write(buffer.Bytes()) n = n + i if err...

but the result is not that on my pc and if you socket set so_nodelay flag the result is separate

![image](https://user-images.githubusercontent.com/22501593/82808662-ff26e200-9ebc-11ea-9734-d5d265c05a21.png) this is the tcpconnect description

so that you three times to write socket will send three packages in network

could you give me privilege to push the code, there has two to fault with udp proxy

![image](https://user-images.githubusercontent.com/22501593/82812546-ce977600-9ec5-11ea-8797-ec8b32915d3a.png)