Documentation
¶
Index ¶
- type BaseConnector
- type Connector
- type Option
- type Port
- func (p *Port) Address() net.IP
- func (p *Port) AnnouceRouting(routings *message.Routing) error
- func (p *Port) BeginRttTiming()
- func (p *Port) Close() error
- func (p *Port) EndRttTiming()
- func (p *Port) Faster(base int) bool
- func (p *Port) IsTunnel() bool
- func (p *Port) PeerID() string
- func (p *Port) ReadPacket(packet *message.Packet) error
- func (p *Port) Rtt() int
- func (p *Port) String() string
- func (p *Port) WritePacket(packet *message.Packet) error
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConnector ¶
type BaseConnector struct {
// contains filtered or unexported fields
}
wire connector
type Connector ¶
type Connector interface {
Dial(string)
}
Connector interface
func NewBaseConnector ¶
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
port is a connect session with a node
func (*Port) AnnouceRouting ¶
send routing info to peers
func (*Port) BeginRttTiming ¶
func (p *Port) BeginRttTiming()
func (*Port) EndRttTiming ¶
func (p *Port) EndRttTiming()
type Router ¶
type Router struct { // connector Connector // contains filtered or unexported fields }
router
func (*Router) FindDestPort ¶
find dest port
func (*Router) RegisterPort ¶
Click to show internal directories.
Click to hide internal directories.