package transport

import "github.com/Microsoft/hcsshim/internal/guest/transport"

Package transport defines the interfaces describing a connection-like data transport mechanism.

Index

Types

type Connection

type Connection interface {
	io.ReadWriteCloser
	CloseRead() error
	CloseWrite() error
	File() (*os.File, error)
}

Connection is the interface defining a data connection, such as a socket or a mocked implementation.

type Transport

type Transport interface {
	// Dial takes a port number and returns a connected connection.
	Dial(port uint32) (Connection, error)
}

Transport is the interface defining a method of transporting data in a connection-like way. Examples of a Transport implementation could be:

-Hyper-V socket transport
-TCP/IP socket transport
-Mocked-out local transport

Source Files

doc.go transport.go

Version
v0.13.0 (latest)
Published
Apr 21, 2025
Platform
js/wasm
Imports
2 packages
Last checked
2 hours ago

Tools for package owners.