Documentation
¶
Index ¶
- Variables
- func BuildV2Ray() error
- func CloseAllServers(servers []*exec.Cmd)
- func CloseServer(server *exec.Cmd)
- func GetSourcePath() string
- func RunV2RayProtobuf(config []byte) *exec.Cmd
- func StartDnsServer() (*dns.Server, uint16)
- func StartTcpServer() (tcp.Server, net1.Destination)
- func StartUdpServer() (*udp.Server, net1.Destination)
- func StartUdpServers() map[*udp.Server]net1.Destination
- func TestTCPConn(port net1.Port, payloadSize int, timeout time.Duration) func() error
- func TestTCPConnTls(port net1.Port, payloadSize int, timeout time.Duration) func() error
- func TestTCPConnTls2(conn net.Conn, payloadSize int, timeout time.Duration) func() error
- func TestUDPConn(port net1.Port, payloadSize int, timeout time.Duration) func() error
- func TestUDPConnN(port net1.Port, payloadSize int, timeout time.Duration, num int) func() error
- func WriteToConn(conn net.Conn, payloadSize int, timeout time.Duration) func() error
- func Xor(b []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var Timeout = time.Second * 2
Functions ¶
func BuildV2Ray ¶
func BuildV2Ray() error
func CloseAllServers ¶
func CloseServer ¶
func GetSourcePath ¶
func GetSourcePath() string
func RunV2RayProtobuf ¶
func StartDnsServer ¶
func StartTcpServer ¶
func StartTcpServer() (tcp.Server, net1.Destination)
func StartUdpServer ¶
func StartUdpServer() (*udp.Server, net1.Destination)
func StartUdpServers ¶
func StartUdpServers() map[*udp.Server]net1.Destination
func TestTCPConn ¶
func TestTCPConnTls ¶
func TestTCPConnTls2 ¶
func TestUDPConn ¶
func TestUDPConnN ¶
func WriteToConn ¶
Write [payloadSize] bytes to [conn] and read [payloadSize] bytes from [conn] and using xor to check the correctness of the data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.