Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CykuTW/tsh-go
/ functions
Functions
48 in github.com/CykuTW/tsh-go
⨍
Functions
48
◇
Types & classes
5
↓ 19 callers
Method
Write
(p []byte)
internal/pel/pel.go:217
↓ 17 callers
Method
Close
()
internal/pty/interface.go:8
↓ 11 callers
Function
NewPelError
(err int)
internal/pel/pel.go:65
↓ 10 callers
Method
Read
(p []byte)
internal/pel/pel.go:270
↓ 8 callers
Function
CopyBuffer
(dst io.Writer, src io.Reader, buf []byte)
internal/utils/utils.go:10
↓ 4 callers
Method
hashKey
(iv []byte)
internal/pel/pel.go:122
↓ 3 callers
Method
readConnUntilFilled
(p []byte)
internal/pel/pel.go:325
↓ 2 callers
Method
Accept
()
internal/pel/pel.go:82
↓ 2 callers
Method
Close
()
internal/pel/pel.go:213
↓ 2 callers
Function
Dial
(address, secret string, isServer bool)
internal/pel/pel.go:102
↓ 2 callers
Method
Handshake
exchange IV with client and setup the encryption layer return err if the packet read/write operation takes more than HandshakeRWTimeout (default: 3) s
internal/pel/pel.go:132
↓ 2 callers
Function
Listen
(address, secret string, isServer bool)
internal/pel/pel.go:69
↓ 2 callers
Function
NewPktEncLayer
(conn net.Conn, secret string)
internal/pel/pel.go:53
↓ 2 callers
Method
ReadTimeout
(p []byte, timeout time.Duration)
internal/pel/pel.go:274
↓ 2 callers
Function
getFileChecksum
(path string)
internal/pty/windows.go:111
↓ 2 callers
Function
handleGeneric
entry handler, automatically close connection after handling it's safe to run with goroutine
internal/tshd/tshd.go:83
↓ 2 callers
Function
handleGetFile
(layer *pel.PktEncLayer, srcfile, dstdir string)
internal/tsh/tsh.go:119
↓ 2 callers
Function
handlePutFile
(layer *pel.PktEncLayer, srcfile, dstdir string)
internal/tsh/tsh.go:146
↓ 2 callers
Function
handleRunShell
(layer *pel.PktEncLayer, command string)
internal/tsh/tsh.go:177
↓ 2 callers
Function
isFileNotExist
(path string)
internal/pty/windows.go:124
↓ 1 callers
Function
NewPktEncLayerListener
(address, secret string, isServer bool)
internal/pel/pel.go:40
↓ 1 callers
Function
OpenPty
(command, term string, ws_col, ws_row uint32)
internal/pty/windows.go:129
↓ 1 callers
Function
Run
()
internal/tsh/tsh.go:19
↓ 1 callers
Function
Run
()
internal/tshd/tshd.go:27
↓ 1 callers
Function
RunInBackground
()
internal/tshd/tshd.go:19
↓ 1 callers
Method
StdIn
()
internal/pty/interface.go:6
↓ 1 callers
Method
StdOut
()
internal/pty/interface.go:7
↓ 1 callers
Function
getWinptyChecksum
()
internal/pty/windows.go:101
↓ 1 callers
Function
handleGetFile
(layer *pel.PktEncLayer)
internal/tshd/tshd.go:103
↓ 1 callers
Function
handlePutFile
(layer *pel.PktEncLayer)
internal/tshd/tshd.go:118
↓ 1 callers
Function
handleRunShell
(layer *pel.PktEncLayer)
internal/tshd/tshd.go:134
↓ 1 callers
Method
read
(p []byte)
internal/pel/pel.go:281
↓ 1 callers
Method
readConnUntilFilledTimeout
(p []byte, timeout time.Duration)
internal/pel/pel.go:338
↓ 1 callers
Function
tryDropWinpty
(dstdir string)
internal/pty/windows.go:70
↓ 1 callers
Method
write
(p []byte)
internal/pel/pel.go:229
Method
Addr
()
internal/pel/pel.go:78
Method
Close
()
internal/pty/windows.go:37
Method
Close
()
internal/pty/linux.go:26
Method
Close
()
internal/pel/pel.go:74
Function
OpenPty
(command, term string, ws_col, ws_row uint32)
internal/pty/linux.go:30
Method
StdIn
()
internal/pty/windows.go:29
Method
StdIn
()
internal/pty/linux.go:18
Method
StdOut
()
internal/pty/windows.go:33
Method
StdOut
()
internal/pty/linux.go:22
Function
init
()
internal/tshd/tshd_windows.go:8
Function
init
()
internal/pty/windows.go:41
Function
main
()
cmd/tshd.go:5
Function
main
()
cmd/tsh.go:5