Tuesday, 13 August 2013

How to connect multiple TCP IP clients to same server port using c++

How to connect multiple TCP IP clients to same server port using c++

I want to connect 2 clients to same server port using TCP IP. I have use
the below code before bind:- // Reuse already binded socket
int reuse=1;
setsockopt(m_iSocketId, SOL_SOCKET, SO_REUSEADDR, (char *)&reuse,
sizeof(reuse))

No comments:

Post a Comment