Documentation ¶
Overview ¶
Package pt_hysteria provides a PT 3.0 Go API wrapper around the connections used by hysteria
Index ¶
- type HysteriaClient
- type HysteriaListener
- type HysteriaServer
- type StreamConn
- func (sc StreamConn) Close() error
- func (sc StreamConn) LocalAddr() net.Addr
- func (sc StreamConn) Read(b []byte) (n int, err error)
- func (sc StreamConn) RemoteAddr() net.Addr
- func (sc StreamConn) SetDeadline(t time.Time) error
- func (sc StreamConn) SetReadDeadline(t time.Time) error
- func (sc StreamConn) SetWriteDeadline(t time.Time) error
- func (sc StreamConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HysteriaClient ¶
type HysteriaClient struct {
// contains filtered or unexported fields
}
func NewHysteriaClient ¶
func NewHysteriaClient(serverAddress string) *HysteriaClient
type HysteriaListener ¶
type HysteriaListener struct {
// contains filtered or unexported fields
}
func NewHysteriaServer ¶
func (*HysteriaListener) Addr ¶
func (hl *HysteriaListener) Addr() net.Addr
Addr returns the listener's network address.
func (*HysteriaListener) Close ¶
func (hl *HysteriaListener) Close() error
Close closes the listener. Any blocked Accept operations will be unblocked and return errors.
type HysteriaServer ¶
type HysteriaServer struct {
// contains filtered or unexported fields
}
type StreamConn ¶
type StreamConn struct {
// contains filtered or unexported fields
}
func (StreamConn) Close ¶
func (sc StreamConn) Close() error
func (StreamConn) LocalAddr ¶
func (sc StreamConn) LocalAddr() net.Addr
LocalAddr returns the local network address. needed to fulfill the net.Conn interface
func (StreamConn) RemoteAddr ¶
func (sc StreamConn) RemoteAddr() net.Addr
RemoteAddr returns the remote network address.
func (StreamConn) SetDeadline ¶
func (sc StreamConn) SetDeadline(t time.Time) error
func (StreamConn) SetReadDeadline ¶
func (sc StreamConn) SetReadDeadline(t time.Time) error
func (StreamConn) SetWriteDeadline ¶
func (sc StreamConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.