i created a multichat app with winsock array it seems to work fine.

say i have 3 clients connected namely client1,client2 and client3 respectively.


if client1 send private message to client2, it checks whether a private message window hasn't already been open with client1 on client2's machine. if not it opens a new window
else
it displays the data in the opened window.

it works fine.

now how do you do that with the server

say client1 sends a message to the server machine, it must do the same thing as client2 machine above.

i tried it it just keeps opening new window

what do i do.