Using the Sockets Library

Thanks for the improvement, ill add it in right away.
But what would happen if a large amount of data was sent in multiple packets? Couldnt it read while stuff is still being sent and miss the end of the message?
Also are you saying i should be calling ccall(:uv_shutdown) after my write code? Or is it fine with the higher level library?