Updates prolog_socket.cpp/hpp.