testing read and readv for socket