transparent-proxy/server/listener.go

18 lines
223 B
Go
Raw Permalink Normal View History

2017-08-07 15:57:17 +08:00
package server
import (
"net"
)
type TransparentListener interface {
Accept() (TransparentConnection, error)
Close() error
}
type TransparentConnection interface {
TCPConn() *net.TCPConn
RealAddr() *net.TCPAddr
}