nbt

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NBTTransport

type NBTTransport struct {
	// contains filtered or unexported fields
}

NBTTransport implements the Transport interface for NetBIOS over TCP Source: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-cifs/45170055-a0cd-4910-9228-801d5bf7ac84

func NewNBTTransport

func NewNBTTransport() *NBTTransport

NewNBTTransport creates a new NetBIOS over TCP transport

func (*NBTTransport) Close

func (n *NBTTransport) Close() error

Close terminates the NetBIOS over TCP connection

func (*NBTTransport) Connect

func (n *NBTTransport) Connect(ipaddr net.IP, port int) error

Connect establishes a NetBIOS over TCP connection

func (*NBTTransport) IsConnected

func (n *NBTTransport) IsConnected() bool

IsConnected returns whether the NetBIOS transport is currently connected

func (*NBTTransport) Receive

func (n *NBTTransport) Receive() ([]byte, error)

Receive reads data from the NetBIOS over TCP connection, handling the NetBIOS header

func (*NBTTransport) Send

func (n *NBTTransport) Send(data []byte) (int, error)

Send transmits data over the NetBIOS over TCP connection with proper NetBIOS header

Jump to

Keyboard shortcuts

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