| 12345678910111213141516171819202122232425262728293031323334353637 | package internetimport (	"net")type ConnectionHandler func(Connection)type Reusable interface {	Reusable() bool	SetReusable(reuse bool)}type StreamConnectionType intvar (	StreamConnectionTypeRawTCP StreamConnectionType = 1	StreamConnectionTypeTCP    StreamConnectionType = 2	StreamConnectionTypeKCP    StreamConnectionType = 4)type StreamSettings struct {	Type StreamConnectionType}func (this *StreamSettings) IsCapableOf(streamType StreamConnectionType) bool {	return (this.Type & streamType) == streamType}type Connection interface {	net.Conn	Reusable}type SysFd interface {	SysFd() (int, error)}
 |