Commit 61fd3f73 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: update docs

parent 50cfb678
...@@ -14,11 +14,9 @@ import ( ...@@ -14,11 +14,9 @@ import (
// to actually act as a server as well. // to actually act as a server as well.
// //
// MuxConn works using a fairly dumb multiplexing technique of simply // MuxConn works using a fairly dumb multiplexing technique of simply
// prefixing each message with what stream it is on along with the length // framing every piece of data sent into a prefix + data format. Streams
// of the data. // are established using a subset of the TCP protocol. Only a subset is
// // necessary since we assume ordering on the underlying RWC.
// This can likely be abstracted to N streams, but by choosing only two
// we decided to cut a lot of corners and make this easily usable for Packer.
type MuxConn struct { type MuxConn struct {
rwc io.ReadWriteCloser rwc io.ReadWriteCloser
streams map[byte]*Stream streams map[byte]*Stream
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment