add the socket stream class and fix some of vnet lib