私はポート7000でリッスンしているサーバーを作成します。サーバーにはvoid handle_post1()
というファンクションを使用して最初のmsgを処理し、void handle_post2()
2回目http request
頂きます。以下のような :異なるhandle_postを使用してmsgを処理する方法(C++ REST SDK)
listener.support(methods::POST, handle_post1);//if this is the first msg I receive
listener.support(methods::POST, handle_post2);//if this is the second msg I receive
は、私は次のようなコードを試みたが、それは動作しません。 どうすればいいですか?