network

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ByteOrder = binary.LittleEndian

Functions

func Connect

func Connect(pid int, dial DialFunc, glob GlobFunc) (net.Conn, error)

Connect opens an IPC connection to a local dotnet process, given a PID. On Mac/Linux, this is a Unix domain socket. Windows (TBD) will use a named pipe. DialFunc and GlobFunc are swappable for testing.

func WriteUTF16String

func WriteUTF16String(buf *bytes.Buffer, s string)

Writes a length-prefixed, zero-terminated utf16 string to the passed-in buffer

Types

type DialFunc

type DialFunc func(network, address string) (net.Conn, error)

type GlobFunc

type GlobFunc func(pattern string) (matches []string, err error)

Jump to

Keyboard shortcuts

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