Documentation ¶
Index ¶
- type SSMuxer
- func (sm *SSMuxer) AddTransport(path string, transport sec.SecureTransport)
- func (sm *SSMuxer) SecureInbound(ctx context.Context, insecure net.Conn, p peer.ID) (sec.SecureConn, bool, error)
- func (sm *SSMuxer) SecureOutbound(ctx context.Context, insecure net.Conn, p peer.ID) (sec.SecureConn, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSMuxer ¶
type SSMuxer struct { OrderPreference []string // contains filtered or unexported fields }
SSMuxer is a multistream stream security transport multiplexer.
SSMuxer is safe to use without initialization. However, it's not safe to move after use.
func (*SSMuxer) AddTransport ¶
func (sm *SSMuxer) AddTransport(path string, transport sec.SecureTransport)
AddTransport adds a stream security transport to this multistream muxer.
This method is *not* thread-safe. It should be called only when initializing the SSMuxer.
Click to show internal directories.
Click to hide internal directories.