Documentation
¶
Index ¶
Constants ¶
View Source
const MULTIPLEXER_HEADER_SIZE = 8
MULTIPLEXER_HEADER_SIZE is the size of the header for the multiplexed data, currently 4 byte for StreamID and 4 byte for length
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EgressServer ¶
type EgressServer struct {
// contains filtered or unexported fields
}
EgressServer takes data from a go channel and recreates the multiplexed TCP streams
type IngressServer ¶
type IngressServer struct {
// contains filtered or unexported fields
}
IngressServer accepts TCPs connections and multiplexes them (read- and write-) over go channels
type MultiplexedConnection ¶
type MultiplexedConnection struct { ID string ID_bytes []byte // contains filtered or unexported fields }
MultiplexedConnection represents a TCP connections to which we assigned a stream ID
Click to show internal directories.
Click to hide internal directories.