Documentation ¶
Overview ¶
协议: T: trans F: files TPackHead
Index ¶
- Constants
- Variables
- func Accept(listen net.Listener)
- func Conn(cmds []string, output io.Writer)
- func CreateCfg() *readline.Config
- func CreateNew() *readline.Instance
- func ExecShell(l *readline.Instance, cmds []string, remote bool)
- func ExecTryShell(cmds []string) error
- func Listen()
- func Pnt()
- func Read(conn net.Conn, date []byte)
- func Readline_process(l *readline.Instance, remote bool)
- func RecvAll(conn net.Conn)
- func RecvCmds(conn net.Conn, pack *TPack) (flag byte, size int64, path string)
- func RecvRemote(conn net.Conn)
- func RecvTarFile(conn net.Conn) (flag bool)
- func RecvTarback(conn net.Conn, recv []byte)
- func Recvback(conn net.Conn) int
- func Send(cmds []string, l *readline.Instance)
- func SendBack(conn net.Conn) int
- func SendHead(addr string, multi uint64, output io.Writer) (net.Conn, error)
- func SendRemote(addr string, output io.Writer)
- func SendTar(wg *sync.WaitGroup, filesName string, conn net.Conn, pool *pb.Pool)
- func Trans(conn net.Conn, target string)
- func Write(conn net.Conn, date []byte)
- type TMd5Pack
- type TPack
- type TPackHead
- type TarGz
Constants ¶
View Source
const ( ConstMaxLength = 64 - 9 PackheadSize = constHeaderLength + constFlagLength PackSize = constHeaderLength + constFlagLength + ConstMaxLength PackMd5sumSize = constHeaderLength + constMd5Length )
Variables ¶
View Source
var RecvFile string
Functions ¶
func Readline_process ¶
func RecvRemote ¶
func RecvTarFile ¶
func RecvTarback ¶
func SendRemote ¶
Types ¶
type TMd5Pack ¶
type TMd5Pack struct {
// contains filtered or unexported fields
}
func NewTMd5Pack ¶
func NewTMd5Pack() *TMd5Pack
func (*TMd5Pack) DepackMd5sum ¶
type TPackHead ¶
type TPackHead struct {
// contains filtered or unexported fields
}
func NewTPackHead ¶
func NewTPackHead() *TPackHead
func (*TPackHead) DepackHead ¶
Click to show internal directories.
Click to hide internal directories.