Documentation ¶
Index ¶
- Constants
- Variables
- func AgentClient(conn net.Conn)
- func AgentHandShake(peerNode *node.Node, currentSessionID uint16) (err error)
- func AgentParseTarget(peerNode *node.Node, currentSessionID uint16) (host string, err error)
- func AgentServer(conn net.Conn)
- func CopyNode2StdinPipe(input *node.Node, output io.Writer, c chan bool, cmd *exec.Cmd)
- func CopyStdoutPipe2Node(input io.Reader, output *node.Node, c chan bool)
- func InitAgentHandler()
- func PipeWhenClose(peerNode *node.Node, currentSessionID uint16, target string)
Constants ¶
View Source
const TIMEOUT = 5
Variables ¶
View Source
var ( Commands = []string{"CONNECT", "BIND", "UDP ASSOCIATE"} AddrType = []string{"", "IPv4", "", "Domain", "IPv6"} Conns = make([]net.Conn, 0) Verbose = false )
View Source
var ERR_FILE_EXISTS = errors.New("remote file already exists")
View Source
var ERR_FILE_NOT_EXISTS = errors.New("remote file not exists")
View Source
var ERR_PROTOCOL_SEPARATOR = errors.New("unknown separator")
View Source
var ERR_TARGET_NODE = errors.New("can not find target node")
View Source
var ERR_UNKNOWN_CMD = errors.New("unknown command type")
Functions ¶
func AgentParseTarget ¶
func CopyNode2StdinPipe ¶
func CopyStdoutPipe2Node ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.