const minPacketLength …
const channelMaxPacket …
const channelWindowSize …
type NewChannel …
type Channel …
type Request …
func (r *Request) Reply(ok bool, payload []byte) error { … }
type RejectionReason …
const Prohibited …
const ConnectionFailed …
const UnknownChannelType …
const ResourceShortage …
func (r RejectionReason) String() string { … }
func min(a uint32, b int) uint32 { … }
type channelDirection …
const channelInbound …
const channelOutbound …
type channel …
func (ch *channel) writePacket(packet []byte) error { … }
func (ch *channel) sendMessage(msg interface{ … }
func (ch *channel) WriteExtended(data []byte, extendedCode uint32) (n int, err error) { … }
func (ch *channel) handleData(packet []byte) error { … }
func (c *channel) adjustWindow(adj uint32) error { … }
func (c *channel) ReadExtended(data []byte, extended uint32) (n int, err error) { … }
func (c *channel) close() { … }
func (ch *channel) responseMessageReceived() error { … }
func (ch *channel) handlePacket(packet []byte) error { … }
func (m *mux) newChannel(chanType string, direction channelDirection, extraData []byte) *channel { … }
var errUndecided …
var errDecidedAlready …
type extChannel …
func (e *extChannel) Write(data []byte) (n int, err error) { … }
func (e *extChannel) Read(data []byte) (n int, err error) { … }
func (ch *channel) Accept() (Channel, <-chan *Request, error) { … }
func (ch *channel) Reject(reason RejectionReason, message string) error { … }
func (ch *channel) Read(data []byte) (int, error) { … }
func (ch *channel) Write(data []byte) (int, error) { … }
func (ch *channel) CloseWrite() error { … }
func (ch *channel) Close() error { … }
func (ch *channel) Extended(code uint32) io.ReadWriter { … }
func (ch *channel) Stderr() io.ReadWriter { … }
func (ch *channel) SendRequest(name string, wantReply bool, payload []byte) (bool, error) { … }
func (ch *channel) ackRequest(ok bool) error { … }
func (ch *channel) ChannelType() string { … }
func (ch *channel) ExtraData() []byte { … }