18 lines
223 B
Go
18 lines
223 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
)
|
||
|
|
||
|
type TransparentListener interface {
|
||
|
Accept() (TransparentConnection, error)
|
||
|
Close() error
|
||
|
}
|
||
|
|
||
|
type TransparentConnection interface {
|
||
|
TCPConn() *net.TCPConn
|
||
|
RealAddr() *net.TCPAddr
|
||
|
}
|
||
|
|
||
|
|