re-implemented MVM_socket_listen function