maybe it's because im tired :-\ [ resolved]
somone hit me in the head and explain why this is happening: Keep in mind its 2:30 and i've had no caffine today ;)
KK ,using winsock ....
VB Code:
dim strData1 as string
dim strData2 as string
strData1 = "hey"
strData2 = "bye"
socket.senddata strData1
socket.senddata strData2
why on the other send, does it come out as "heybye" instead of 2 seperate strings of "hey" and "bye" ...like on other end i have
VB Code:
socket2.getdata strData1
socket2.getdata strData2
text1.text = strData1
text2.text = strData2
text2 stays empty while text1 becomes "heybye"
*** (pardon my french ) lololol am i not allowed to send data like that?
-lost n tired-
:( :( :(
Re: maybe it's because im tired :-\
I don't know for sure why it does that, but I remember I just put a delay between the sends and it worked... I think it has something to do with it arriving at the same time on the receiver. There should be some threads around here about that seeing as it is a rather common occurrence.
Re: maybe it's because im tired :-\
thats absolutelyyy retarddsed then!
it should see it as seperate data and be able to multitask ffs!!!!!!!!
die winsock die.
Goodbye - must search forums s :)
Re: maybe it's because im tired :-\
ok apparently using the sleep api doesn't do anything to help this
lol so i doubt any other delay type functions would work???
blah.
Re: maybe it's because im tired :-\
did you give it a few seconds?
Re: maybe it's because im tired :-\
used
sleep 5000
5 seconds should be sufficient i'd think :ehh:
Re: maybe it's because im tired :-\
send a vbCrlf after the first one?
Re: maybe it's because im tired :-\
Include a vbCrLf after both lines. Otherwise you're not sending. WinSock OCX is pretty retarded... API works a lot better.
Re: maybe it's because im tired :-\
it seems to be sending one of them without it, but it couldn't hurt to send both.
Re: maybe it's because im tired :-\
Alright, i just used a / delimiter after each send, and then cut them up on the receiving end, works fine i guess.
just wish the winsock control was better :rolleyes:
i don't like to use winsock api classmodules, dunno why... i usually end up adding 15 functions or so into the modules and end up only using my own functions anyways. :confused: