This is for testing with c++ sockets.