Results 1 to 3 of 3

Thread: [RESOLVED] separate senddata strings sent together

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    40

    Resolved [RESOLVED] separate senddata strings sent together

    In my client application, I have a timer that continually sends a string packet every few seconds to the server. At times, the server sends a packet to the client requesting a response from the client in the form of a string packet.

    Occasionally, the timer is sending a packet just after the server requests a response from the client and the two strings merge as one packet, which of course the server can no longer interpret.

    Is there a way to make sure that the two strings are sent as separate packets?

    Thanks for your help.

    David

  2. #2
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: separate senddata strings sent together

    Try putting
    VB Code:
    1. DoEvents
    after the socket.senddata line. It shouldnt be showing as one packet anyway....can you show us the socket_dataarraival sub so I can take a look
    Chris

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    40

    Re: separate senddata strings sent together

    Doevents did the trick.. I even tried putting to senddata evetns directly after eachother in the timer. without the doevents, both strings were sent as one, with the doevents, each string was sent separately

    thanks
    Last edited by dlern; Feb 22nd, 2006 at 08:59 PM.

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