From f2c3d41f2dba846ee1e76354127b0b69ebfd5337 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 3 Dec 2015 14:12:47 +0000 Subject: [PATCH] comments --- shell/point/inbound_detour.go | 2 ++ shell/point/point.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/shell/point/inbound_detour.go b/shell/point/inbound_detour.go index 2ee0bbf1..eb2a7262 100644 --- a/shell/point/inbound_detour.go +++ b/shell/point/inbound_detour.go @@ -13,6 +13,7 @@ type InboundConnectionHandlerWithPort struct { handler connhandler.InboundConnectionHandler } +// Handler for inbound detour connections. type InboundDetourHandler struct { point *Point config config.InboundDetourConfig @@ -43,6 +44,7 @@ func (this *InboundDetourHandler) Initialize() error { return nil } +// Starts the inbound connection handler. func (this *InboundDetourHandler) Start() error { for _, ich := range this.ich { return retry.Timed(100 /* times */, 100 /* ms */).On(func() error { diff --git a/shell/point/point.go b/shell/point/point.go index 5617b27d..74d1c789 100644 --- a/shell/point/point.go +++ b/shell/point/point.go @@ -129,6 +129,9 @@ func (this *Point) Start() error { return nil } +// Dispatches a Packet to an OutboundConnection. +// The packet will be passed through the router (if configured), and then sent to an outbound +// connection with matching tag. func (this *Point) DispatchToOutbound(packet v2net.Packet) ray.InboundRay { direct := ray.NewRay() dest := packet.Destination()