Documentation
¶
Index ¶
- func Copy(tunw io.Writer, r io.Reader, packFunc func(tunw io.Writer, data []byte) error) error
- func PackBodyClose(w io.Writer, connID int64) error
- func PackBodyClosePTY(w io.Writer, exitCode int64) error
- func PackBodyConfig(w io.Writer, connectAddr string) error
- func PackBodyConnect(w io.Writer, connID int64) error
- func PackBodyConnectPTY(w io.Writer, rawMode bool, args []string, width int16, height int16) error
- func PackBodyConnectPTYResult(w io.Writer, connectResult error) error
- func PackBodyConnectResult(w io.Writer, connID int64, connectResult error) error
- func PackBodyIOPTY(w io.Writer, data []byte) error
- func PackBodyResizePTY(w io.Writer, width int16, height int16) error
- func PackBodySend(w io.Writer, connID int64, data []byte) error
- func PackBodyTunID(w io.Writer, tunID int64) error
- func PackHeader(w io.Writer, cmd Cmd) error
- func SyncTunID(ctx context.Context, isServer bool, tunr io.Reader, tunw io.Writer) (int64, error)
- func UnpackBodyClose(r io.Reader) (connID int64, err error)
- func UnpackBodyClosePTY(r io.Reader) (exitCode int64, err error)
- func UnpackBodyConfig(r io.Reader) (connectAddr string, err error)
- func UnpackBodyConnect(r io.Reader) (connID int64, err error)
- func UnpackBodyConnectPTY(r io.Reader) (rawMode bool, args []string, width int16, height int16, err error)
- func UnpackBodyConnectPTYResult(r io.Reader) (connectResult error, err error)
- func UnpackBodyConnectResult(r io.Reader) (connID int64, connectResult error, err error)
- func UnpackBodyIOPTY(r io.Reader) (data []byte, err error)
- func UnpackBodyResizePTY(r io.Reader) (width int16, height int16, err error)
- func UnpackBodySend(r io.Reader) (connID int64, data []byte, err error)
- func UnpackBodyTunID(r io.Reader) (tunID int64, err error)
- type Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PackBodyConnectPTY ¶ added in v1.2.0
func PackBodyConnectPTYResult ¶ added in v1.2.0
func PackBodyConnectResult ¶
func PackBodyResizePTY ¶ added in v1.2.0
func UnpackBodyClosePTY ¶ added in v1.2.0
func UnpackBodyConnectPTY ¶ added in v1.2.0
func UnpackBodyConnectPTYResult ¶ added in v1.2.0
func UnpackBodyConnectResult ¶
func UnpackBodyResizePTY ¶ added in v1.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.