Versions in this module Expand all Collapse all v0 v0.1.15 Nov 10, 2023 Changes in this version + const PacketSizeMax — windows/amd64 + const RingCapacityMax — windows/amd64 + const RingCapacityMin — windows/amd64 + func RunningVersion() (version uint32, err error) — windows/amd64 + func Uninstall() (err error) — windows/amd64 + type Adapter struct — windows/amd64 + func CreateAdapter(name string, tunnelType string, requestedGUID *windows.GUID) (wintun *Adapter, err error) + func OpenAdapter(name string) (wintun *Adapter, err error) + func (wintun *Adapter) Close() (err error) + func (wintun *Adapter) LUID() (luid uint64) + func (wintun *Adapter) StartSession(capacity uint32) (session Session, err error) + type Packet struct — windows/amd64 + Data *[PacketSizeMax]byte + Next *Packet + Size uint32 + type Session struct — windows/amd64 + func (session Session) AllocateSendPacket(packetSize int) (packet []byte, err error) + func (session Session) End() + func (session Session) ReadWaitEvent() (handle windows.Handle) + func (session Session) ReceivePacket() (packet []byte, err error) + func (session Session) ReleaseReceivePacket(packet []byte) + func (session Session) SendPacket(packet []byte)