Documentation ¶
Overview ¶
Ways to initialize conn with bridge protocol
General dial and listen for net ¶
Edge protocol: connection discovery depending on network filesystem only
Packet parsing for bridge protocol
Index ¶
- Constants
- func Dial(rawurl string) (net.Conn, error)
- func DialB(bridge, key, iface string) (conn net.Conn, err error)
- func DialE(edgeFile string) (conn net.Conn, err error)
- func Listen(rawurl string) (net.Listener, error)
- func ListenB(bridge, key, iface string) (net.Listener, error)
- func ListenE(edgeFile string) (net.Listener, error)
- type BridgeListener
- type EdgeAddr
- type EdgeListener
- type Error
Constants ¶
View Source
const ( CONNECT_RETRY_INTERVAL = 500 * time.Millisecond RENDEZVOUS_TIMEOUT = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BridgeListener ¶
type BridgeListener struct {
// contains filtered or unexported fields
}
func (*BridgeListener) Addr ¶
func (bl *BridgeListener) Addr() net.Addr
func (*BridgeListener) Close ¶
func (bl *BridgeListener) Close() error
type EdgeListener ¶
type EdgeListener struct {
// contains filtered or unexported fields
}
func (*EdgeListener) Addr ¶
func (el *EdgeListener) Addr() net.Addr
func (*EdgeListener) Close ¶
func (el *EdgeListener) Close() error
Close all underlying listeners and optionally remove the edge file. This has to be called at exit for edge file clean up
Click to show internal directories.
Click to hide internal directories.