rewrite ControlBlock.Open to only open passive connections; now use Send for active connections

This commit is contained in:
soypat
2025-02-13 22:56:27 -03:00
parent 0cb43c47a4
commit bbd74d04d8
6 changed files with 88 additions and 29 deletions
+20
View File
@@ -0,0 +1,20 @@
package tcp
import (
"math/rand"
"testing"
)
func TestHandler(t *testing.T) {
}
func setupClientServer(rng *rand.Rand) (client, server Handler) {
// err := server.Open(StateListen, uint16(rng.Uint32()), 0, 0)
// if err != nil {
// panic(err)
// }
// err = client.Open(State)
return client, server
}