Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxPoolCap = 10 PoolTimeoutMS = 150000 )
Variables ¶
This section is empty.
Functions ¶
func NewAppError ¶
Types ¶
type SnellClient ¶
type SnellClient struct {
// contains filtered or unexported fields
}
func NewSnellClient ¶
func NewSnellClient(listen, server, obfs, obfsHost, psk string, isV2 bool) (*SnellClient, error)
func (*SnellClient) Close ¶
func (s *SnellClient) Close()
func (*SnellClient) DropSession ¶
func (s *SnellClient) DropSession(c net.Conn)
func (*SnellClient) GetSession ¶
func (s *SnellClient) GetSession(target string) (net.Conn, error)
func (*SnellClient) PutSession ¶
func (s *SnellClient) PutSession(c net.Conn)
func (*SnellClient) StreamConn ¶
type SnellServer ¶
type SnellServer struct {
// contains filtered or unexported fields
}
func NewSnellServer ¶
func NewSnellServer(listen, psk, obfsType string) (*SnellServer, error)
func (*SnellServer) Close ¶
func (s *SnellServer) Close()
func (*SnellServer) ServerHandshake ¶
Click to show internal directories.
Click to hide internal directories.