pnet

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProtectedConn

func NewProtectedConn(psk ipnet.PSK, conn net.Conn) (net.Conn, error)

NewProtectedConn 创建一个新的受保护连接 参数:

  • psk: ipnet.PSK 预共享密钥
  • conn: net.Conn 原始网络连接

返回值:

  • net.Conn: 受保护的网络连接
  • error: 错误信息

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL