diff options
Diffstat (limited to 'vendor/github.com/xtaci/kcp-go/v5/batchconn.go')
-rw-r--r-- | vendor/github.com/xtaci/kcp-go/v5/batchconn.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/xtaci/kcp-go/v5/batchconn.go b/vendor/github.com/xtaci/kcp-go/v5/batchconn.go new file mode 100644 index 0000000..6c30701 --- /dev/null +++ b/vendor/github.com/xtaci/kcp-go/v5/batchconn.go @@ -0,0 +1,12 @@ +package kcp + +import "golang.org/x/net/ipv4" + +const ( + batchSize = 16 +) + +type batchConn interface { + WriteBatch(ms []ipv4.Message, flags int) (int, error) + ReadBatch(ms []ipv4.Message, flags int) (int, error) +} |