1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/beam
Alexander Larsson 24f9187a04 beam: Add simple framing system for UnixConn
This is needed for Send/Recieve to correctly handle borders between
the messages.

The framing uses a single 32bit uint32 length for each frame, of which
the high bit is used to indicate whether the message contains a file
descriptor or not. This is enough to separate out each message sent
and to decide to which message each file descriptors belongs, even
though multiple Sends may be coalesced into a single read, and/or one
Send can be split into multiple writes.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
2014-05-01 11:06:01 -07:00
..
data Fix Go formatting in beam and dockerscript 2014-04-22 16:16:29 -07:00
examples/beamsh Fix Go formatting in beam and dockerscript 2014-04-22 16:16:29 -07:00
beam.go beam/examples/beamsh: 'exec' can communicate with its child via beam. 2014-04-22 15:50:24 -07:00
beam_test.go Fix Go formatting in beam and dockerscript 2014-04-22 16:16:29 -07:00
MAINTAINERS Fix various MAINTAINERS format inconsistencies 2014-04-30 11:22:11 -06:00
router.go Fix Go formatting in beam and dockerscript 2014-04-22 16:16:29 -07:00
router_test.go Fix Go formatting in beam and dockerscript 2014-04-22 16:16:29 -07:00
service.go beam: replace SendPair() with the simpler SendConn() 2014-04-22 15:50:21 -07:00
unix.go beam: Add simple framing system for UnixConn 2014-05-01 11:06:01 -07:00
unix_test.go beam: Add more tests to unix_test.go 2014-04-30 02:10:09 -07:00