added prototype for mget_socket.