Ver Fonte

recycler interface

Darien Raymond há 9 anos atrás
pai
commit
b2e084c78c
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      transport/internet/internal/pool.go

+ 4 - 0
transport/internet/internal/pool.go

@@ -8,6 +8,10 @@ import (
 	"v2ray.com/core/common/signal"
 )
 
+type ConnectionRecyler interface {
+	Put(ConnectionId, net.Conn)
+}
+
 type ConnectionId struct {
 	Local      v2net.Address
 	Remote     v2net.Address