binary writer/reader, partial net::buffer, socket fix.
net::buffer reading added.