|
-
Jul 28th, 2000, 08:16 PM
#1
Thread Starter
Junior Member
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
#2
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
-
Jul 29th, 2000, 01:46 AM
#3
Thread Starter
Junior Member
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
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|