github.com/geph-official/geph2@v0.22.6-0.20210211030601-f527cb59b0df/libs/kcp-go/batchconn.go (about)

     1  package kcp
     2  
     3  import "golang.org/x/net/ipv4"
     4  
     5  const (
     6  	batchSize = 16
     7  )
     8  
     9  type batchConn interface {
    10  	WriteBatch(ms []ipv4.Message, flags int) (int, error)
    11  	ReadBatch(ms []ipv4.Message, flags int) (int, error)
    12  }