Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEndpoint ¶
func CreateEndpoint(dev Device) stack.LinkEndpoint
Types ¶
type Endpoint ¶
type Endpoint struct { *channel.Endpoint Reader Reader Writer Writer // contains filtered or unexported fields }
func (*Endpoint) Attach ¶
func (e *Endpoint) Attach(dispatcher stack.NetworkDispatcher)
Attach is to attach device to stack
func (*Endpoint) WriteNotify ¶
func (e *Endpoint) WriteNotify()
WriteNotify will be called when a write happens to the queue.
type Stack ¶
Stack go netstack provided by gvisor.dev
func (*Stack) HandlePacket ¶
func (s *Stack) HandlePacket(id stack.TransportEndpointID, pkt *stack.PacketBuffer) bool
func (*Stack) HandleStream ¶
func (s *Stack) HandleStream(r *tcp.ForwarderRequest)
HandleStream is to handle incoming TCP connections
type UDPPacket ¶
type UDPPacket struct {
// contains filtered or unexported fields
}
func (*UDPPacket) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.