Documentation ¶
Index ¶
Constants ¶
View Source
const ( DialTimeout = 5 * time.Second ConnectTimeout = 5 * time.Second BackoffMaxDelay = 3 * time.Second InitialWindowSize = 1 << 30 InitialConnWindowSize = 1 << 30 KeepAliveTimeout = time.Duration(3) * time.Second KeepAliveTime = time.Duration(10) * time.Second MaxRecvMsgSize = 1 << 30 MaxSendMsgSize = 1 << 30 ReadBufferSize = 1 << 10 WriteBufferSize = 1 << 10 MaxIdle = 8 MaxActive = 64 MaxConcurrentStreams = 64 )
Variables ¶
This section is empty.
Functions ¶
func NewClientReadWriter ¶
func NewClientReadWriter(conn pool.Conn, c proto.Tunnel_OnConnectClient) *clientReadWriter
func NewServerReadWriter ¶
func NewServerReadWriter(c proto.Tunnel_OnConnectServer) *serverReadWriter
Types ¶
type Server ¶
type Server struct { proto.UnimplementedTunnelServer // contains filtered or unexported fields }
func (*Server) ListenAndServe ¶ added in v0.1.7
func (s *Server) ListenAndServe(handler func(io.ReadWriter)) error
func (*Server) ListenAndServeTLS ¶
func (s *Server) ListenAndServeTLS(certFile, keyFile string, handler func(io.ReadWriter)) error
Click to show internal directories.
Click to hide internal directories.