Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crabkun/crab
/ functions
Functions
65 in github.com/crabkun/crab
⨍
Functions
65
◇
Types & classes
17
↓ 19 callers
Method
Close
()
crypto/crypto.go:12
↓ 8 callers
Function
Response
(c net.Conn, code uint8, data []byte)
utils.go:61
↓ 7 callers
Method
Read
(buf []byte)
crypto/crypto.go:10
↓ 7 callers
Method
Write
(buf []byte)
crypto/crypto.go:11
↓ 6 callers
Method
Close
()
compress/compress.go:12
↓ 6 callers
Function
SendCommand
(c net.Conn, command uint8, data []byte)
utils.go:65
↓ 6 callers
Function
tcpBridge
(a io.ReadCloser, b io.WriteCloser)
bridge.go:9
↓ 4 callers
Function
ReadFromSocket
(c net.Conn)
utils.go:10
↓ 3 callers
Method
Read
(buf []byte)
compress/compress.go:10
↓ 3 callers
Method
Validate
()
config/config.go:14
↓ 3 callers
Method
Write
(buf []byte)
compress/compress.go:11
↓ 3 callers
Function
registerCompress
(name string, rf NewCompressReaderFunc, wf NewCompressWriterFunc)
compress/compress.go:21
↓ 2 callers
Method
GetPort
(portKey string)
config/config.go:65
↓ 2 callers
Function
WriteToSocket
(c net.Conn, data []byte)
utils.go:39
↓ 2 callers
Function
registerCrypto
(name string, rf NewCryptoReaderFunc, wf NewCryptoWriterFunc)
crypto/crypto.go:21
↓ 1 callers
Function
ClientMain
(cfg *config.ClientConfig)
client.go:15
↓ 1 callers
Function
MasterMain
(cfg *config.MasterConfig)
master.go:28
↓ 1 callers
Function
ServerMain
(cfg *config.ServerConfig)
server.go:14
↓ 1 callers
Method
Validate
()
config/config.go:29
↓ 1 callers
Method
Validate
()
config/config.go:45
↓ 1 callers
Method
Validate
()
config/config.go:110
↓ 1 callers
Function
clientHandleNewConn
(remote net.Conn, cfg *config.PortConfig)
client.go:50
↓ 1 callers
Function
clientListenAt
(cfg *config.PortConfig)
client.go:25
↓ 1 callers
Function
getRandomBytes
(l int64)
crypto/utils.go:5
↓ 1 callers
Function
masterConnectPortKey
(conn net.Conn, portKey string)
master.go:221
↓ 1 callers
Function
masterHandleNewConn
(conn net.Conn)
master.go:60
↓ 1 callers
Function
masterHandleServer
(conn net.Conn, masterKeyBuf []byte)
master.go:122
↓ 1 callers
Function
masterMatchClient
(c net.Conn, clientGuid string)
master.go:299
↓ 1 callers
Function
masterRegisterPortKey
(c net.Conn, portKey string)
master.go:204
↓ 1 callers
Function
serverHandleNewClient
(master net.Conn, portCfg *config.PortConfig, guid string)
server.go:107
Method
Close
()
crypto/aes128cfb.go:41
Method
Close
()
crypto/plain.go:18
Method
Close
()
compress/zstd.go:26
Method
Close
()
compress/s2.go:26
Method
Close
()
compress/null.go:20
Function
GetCompress
(name string)
compress/compress.go:33
Function
GetCrypto
(name string)
crypto/crypto.go:33
Function
NewAes128CfbCryptoReader
(key string, r io.ReadCloser)
crypto/aes128cfb.go:51
Function
NewAes128CfbCryptoWriter
(key string, w io.WriteCloser)
crypto/aes128cfb.go:67
Function
NewNullCompressReader
(r io.ReadCloser)
compress/null.go:36
Function
NewNullCompressWriter
(w io.WriteCloser)
compress/null.go:30
Function
NewPlainCryptoReader
(key string, r io.ReadCloser)
crypto/plain.go:28
Function
NewPlainCryptoWriter
(key string, w io.WriteCloser)
crypto/plain.go:32
Function
NewS2CompressReader
(r io.ReadCloser)
compress/s2.go:44
Function
NewS2CompressWriter
(w io.WriteCloser)
compress/s2.go:36
Function
NewZstdCompressReader
(r io.ReadCloser)
compress/zstd.go:47
Function
NewZstdCompressWriter
(w io.WriteCloser)
compress/zstd.go:36
Method
Read
(buf []byte)
crypto/aes128cfb.go:20
Method
Read
(buf []byte)
crypto/plain.go:10
Method
Read
(buf []byte)
compress/zstd.go:14
Method
Read
(buf []byte)
compress/s2.go:14
Method
Read
(buf []byte)
compress/null.go:12
Method
Validate
()
config/config.go:83
Method
Write
(buf []byte)
crypto/aes128cfb.go:37
Method
Write
(buf []byte)
crypto/plain.go:14
Method
Write
(buf []byte)
compress/zstd.go:18
Method
Write
(buf []byte)
compress/s2.go:18
Method
Write
(buf []byte)
compress/null.go:16
Function
init
()
main.go:18
Function
init
()
crypto/aes128cfb.go:92
Function
init
()
crypto/plain.go:36
Function
init
()
compress/zstd.go:58
Function
init
()
compress/s2.go:52
Function
init
()
compress/null.go:42
Function
main
()
main.go:22