Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
zeromq ソケットで現在接続されているクライアントの数をカウントする方法はありますか? それが不可能な場合、ソケットにクライアントが接続されていないかどうかを判断する方法はありますか?
ありがとう。
2 番目のソケットを使用してカウンターを簡単に実装できます。アクティブなクライアントを持っているか、ソケットを閉じるたびに、「ソケット カウンター」にメッセージを送信します。
ZeroMQ は、ソケットを結合するために作られています。