re-implemented MVM_socket_accept function