Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPTransport ¶
type TCPTransport struct {
// contains filtered or unexported fields
}
TCPTransport implements the Transport interface for Direct TCP transport Source: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-smb/f906c680-330c-43ae-9a71-f854e24aeee6
func NewTCPTransport ¶
func NewTCPTransport() *TCPTransport
NewTCPTransport creates a new Direct TCP transport
func (*TCPTransport) Close ¶
func (t *TCPTransport) Close() error
Close terminates the Direct TCP connection
func (*TCPTransport) Connect ¶
func (t *TCPTransport) Connect(ipaddr net.IP, port int) error
Connect establishes a Direct TCP connection
func (*TCPTransport) IsConnected ¶
func (t *TCPTransport) IsConnected() bool
IsConnected returns whether the Direct TCP transport is currently connected
func (*TCPTransport) Receive ¶
func (t *TCPTransport) Receive() ([]byte, error)
Receive reads data from the Direct TCP connection, handling the Direct TCP header
Click to show internal directories.
Click to hide internal directories.