i m using sockets for setting up a connection between a server and a client.
When the clients gets connected to the server, its ip is conveyed to the server through one of the predefined structures in c library...
i save this ip address in an array....1st client's ip address goes to the zeroth element....2nd client's ip addr goes to the 1st element and so on....
the problem is that when 2nd client connects to the server, it overwrites the previously saved ip addresses,i.e. the zeroth element now saves ip addr of 2nd client....
can anyone tell me a way to get out of this situation???
thnx in advance...