zhangmeng
2022-01-13 b379104205af838e883a252e9b8358b0388e6015
src/bn_api.cpp
@@ -42,6 +42,7 @@
        unsigned short port = *(unsigned short*)(out);
        copy_memory(reply, reply_len, (char*)out + port_size, out_len - port_size);
        BHFree(out, out_len);
        printf("======>> recv port %d\n", port);
/////////////////////////////////////////////////////////////////////////
        const auto& url_pub_proxy = get_url(URLPubProxy);
@@ -52,7 +53,7 @@
        const auto& url_hb = get_url(URLHeartBeat);
        respond_survey(url_hb, string{(const char*)proc_info, (const size_t)proc_info_len});
        start_reply(pi.proc_id(), 0);
        start_reply(pi.proc_id(), port);
    }
    return ret;
}