We now have a BufferedReader and a BufferedWriter for the xenstore ring

Signed-off-by: David Scott <dave.scott@citrix.com>
Move Buffered{Reader,Writer} to core/

Signed-off-by: David Scott <dave.scott@citrix.com>
Remove the tricky buffer handling now that we have Buffered{Reader,Writer}

Signed-off-by: David Scott <dave.scott@citrix.com>
kernelspace transport uses the Buffered{Reader,Writer}

Signed-off-by: David Scott <dave.scott@citrix.com>
Userspace should use the same buffering logic as kernel

This will simplify testing.

Signed-off-by: David Scott <dave.scott@citrix.com>
Add a PacketReader to be layered on top of the BufferedReader

Signed-off-by: David Scott <dave.scott@citrix.com>
userspace: implement the Writer

Signed-off-by: David Scott <dave.scott@citrix.com>
Add a PacketWriter

Signed-off-by: David Scott <dave.scott@citrix.com>
Add tests for the PacketReader and BufferedReader

Signed-off-by: David Scott <dave.scott@citrix.com>
Buffered packet reading unit test now passes.

Signed-off-by: David Scott <dave.scott@citrix.com>
Add test for buffered packet printing

Signed-off-by: David Scott <dave.scott@citrix.com>
Fix the packet writing test

Signed-off-by: David Scott <dave.scott@citrix.com>
Packet writing test: write 2 packets

This test currently fails.

Signed-off-by: David Scott <dave.scott@citrix.com>
Fix the packet reading test

Signed-off-by: David Scott <dave.scott@citrix.com>
Add missing signature

Signed-off-by: David Scott <dave.scott@citrix.com>
Unused binding

Signed-off-by: David Scott <dave.scott@citrix.com>
Make the packet writing test more difficult

Signed-off-by: David Scott <dave.scott@citrix.com>
Window: add an 'item' type

Some implementations will work in terms of bytes, others in terms
of packets.

Signed-off-by: David Scott <dave.scott@citrix.com>
Each CONNECTION now has a Request.Reader

Ultimately we will hide the low-level read/write functions -- neither
clients nor servers should ever see the raw bytes.

Signed-off-by: David Scott <dave.scott@citrix.com>
Complete the signatures for the Request.{Reader,Writer}

Signed-off-by: David Scott <dave.scott@citrix.com>