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.
TCP IP を使用して 2 つのクライアントを同じサーバー ポートに接続したいと考えています。バインドする前に以下のコードを使用しました:- // 既にバインドされているソケットを再利用します
int reuse=1; setsockopt(m_iSocketId, SOL_SOCKET, SO_REUSEADDR, (char *)&reuse, sizeof(reuse))