Added remaining() to network buffers.