Results 1 to 10 of 10

Thread: maybe it's because im tired :-\ [ resolved]

  1. #1

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Resolved 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:
    1. dim strData1 as string
    2. dim strData2 as string
    3. strData1 = "hey"
    4. strData2 = "bye"
    5. socket.senddata strData1
    6. 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:
    1. socket2.getdata strData1
    2. socket2.getdata strData2
    3. text1.text = strData1
    4. 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++

  2. #2
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    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

  3. #3

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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++

  4. #4

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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++

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: maybe it's because im tired :-\

    did you give it a few seconds?

  6. #6

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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++

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: maybe it's because im tired :-\

    send a vbCrlf after the first one?

  8. #8
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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.

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  10. #10

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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
  •  



Click Here to Expand Forum to Full Width