tcpsock.cpp testing