Link to home
Start Free TrialLog in
Avatar of Psycho1
Psycho1

asked on

Winsocket with more than one client

I made a winsocket server application and an other application, works as a client. I want to make a chatroom. But if I run twice or more the client application, the lastone gets all the messages(it works well) and the other ones can only send. What do I have to do?
I want to send all the messages for all clients.
Avatar of VBGuru
VBGuru
Flag of India image

I think you while transmitting the message to the clients you are transmitting the message to the currently opened client. You got to go through all the controls in the control array and send the message to each one of them
ASKER CERTIFIED SOLUTION
Avatar of mcrider
mcrider

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Psycho1
Psycho1

ASKER

Thanks very much! I did not tried it but i think it have to works fine! Thanks again!
Thanks for the points! Glad I could help!


Cheers!
Avatar of Psycho1

ASKER

I've tried it. Cool. What I wrote had only one problem. A DoEvents... Funny. Anyway, if I don't get your code, I'm in trouble. Thanks once again and Your Welcome for the points!