コード例 #1
0
ファイル: test-send++.cpp プロジェクト: dazer-chen/PFQ
void mode_2(pfq::socket &q, int64_t num)
{
    for(int64_t n = 0; n < num;)
    {
        if (q.send_sync(pfq::const_buffer(reinterpret_cast<const char *>(ping), sizeof(ping)), 128))
            n++;
    }

    q.tx_queue_flush();

}