|
-
Dec 28th, 2004, 02:32 AM
#1
Thread Starter
Frenzied Member
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-
Last edited by ice_531; Dec 28th, 2004 at 12:53 PM.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Dec 28th, 2004, 02:38 AM
#2
Fanatic Member
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.
"X-mas is 24.Desember you English morons.." - NoteMe
-
Dec 28th, 2004, 02:39 AM
#3
Thread Starter
Frenzied Member
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
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Dec 28th, 2004, 02:48 AM
#4
Thread Starter
Frenzied Member
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.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Dec 28th, 2004, 02:51 AM
#5
Re: maybe it's because im tired :-\
did you give it a few seconds?
-
Dec 28th, 2004, 02:53 AM
#6
Thread Starter
Frenzied Member
Re: maybe it's because im tired :-\
used
sleep 5000
5 seconds should be sufficient i'd think
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Dec 28th, 2004, 04:22 AM
#7
Re: maybe it's because im tired :-\
send a vbCrlf after the first one?
-
Dec 28th, 2004, 04:24 AM
#8
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.
-
Dec 28th, 2004, 05:24 AM
#9
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.
-
Dec 28th, 2004, 12:53 PM
#10
Thread Starter
Frenzied Member
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
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.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
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
|