Update g_socket.cpp