Documentation ¶
Index ¶
Constants ¶
View Source
const ( LinkHeaderConnId = 0 LinkHeaderType = 1 LinkHeaderRouterId = 2 PayloadChannel = 1 AckChannel = 2 )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory(accepter xlink.Accepter, chAccepter ChannelAccepter, c transport.Configuration) xlink.Factory
Types ¶
type ChannelAccepter ¶
type ChannelAccepter interface {
AcceptChannel(xlink xlink.Xlink, payloadCh channel2.Channel, latency bool, listenerSide bool) error
}
ChannelAccepter can be implemented and provided to the factory to perform channel2 binding and other channel setup tasks at accept time.
type ConnectionHandler ¶ added in v0.16.128
type ConnectionHandler struct {
// contains filtered or unexported fields
}
func (*ConnectionHandler) HandleConnection ¶ added in v0.16.128
func (self *ConnectionHandler) HandleConnection(_ *channel2.Hello, certificates []*x509.Certificate) error
Click to show internal directories.
Click to hide internal directories.