PDA

Click to See Complete Forum and Search --> : Winsock Control


Acid
Jul 28th, 2000, 08:16 PM
Im trying to make a chat program. IT consists of a client that I give to people and a server that runs on my computer. The problem is that i have to send data methods invoked in one sub procedure. And when they arive to the client they are merged together for some reason. I dont know how to fix this and if anyone can help me I would appreciate it.

Jul 28th, 2000, 11:43 PM
If you mean that the data sent is all stuck together even though you sent them with different SendData methods in the same sub, it happens, you can get around it by putting other SendData methods in the SendComplete event.

Sunny

Acid
Jul 29th, 2000, 01:46 AM
Originally posted by sunnyl
If you mean that the data sent is all stuck together even though you sent them with different SendData methods in the same sub, it happens, you can get around it by putting other SendData methods in the SendComplete event.

Sunny

Yes thats what I mean. SO there is an event sendcomplete that fires up when the data is done sending. The only way I can think of is to go into a loop which will cancel when a global variable is set to true from the sendcomplete event.

Jul 29th, 2000, 04:15 AM
I'm not sure what you're trying to say in the last post.

After the first Winsock is done sending, the SendComplete event fires and inside that event, you can put your other SendData (and maybe if you have 3 SendDatas, you'd have to put the 3rd one into the second's SendComplete). When data is sent by multiple Winsocks in this fashion, they won't get stuck together. What seems to be the problem?

Sunny