PDA

Click to See Complete Forum and Search --> : Sending too much at a time...


Darkstar
Jul 26th, 1999, 05:21 PM
Hi,

I have a problem with the mswinsck.ocx ...
But, in order to understand my question, pls read this code:
'Program is TCP/IP
'Client calls this sub:
sub SendPacket(lpText as string)
sckmain.senddata "1"
doevents
sckmain.senddata "2"
doevents
end sub

'--===-- Server side:
Sub SckMain_DataArrival(blah as blah)
dim Data as string
sckmain.getdata,data
'Now, the Data = "12", where it should = "1"
'you can only immagine the trouble this will cause when it is a program with headers...
end sub
'------=======------
question:

How can I get the correct data from the server.sckmain?
Can i fix this without having to use a wierd string as a String Terminator?
I used the "Sleep" declare to let it sleep for 300ms, but that's not an acceptable sollution...

thanks in advance!


Darkstar