Results 1 to 3 of 3

Thread: winsock stream processing

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    5
    I want to process the data received in a UDP packet line by line. Is there some readline function that I can use, or do I have to process each character until I hit a CR? I do not want to perform any file I/O to accomplish this.

    I thought about writing my own "buffer" object, and implement "readline" with the help of the "Instr" VB function.

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Posts
    72
    a udp payload, maxs out at 5?? characters, i think, looking for CR would be the best way. Go Char. by char. and build a temp string. When you reach CR that is the end of the string and there for the end of the line
    VB 6 Professional Edition

  3. #3
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    Wasn't UDP so that it's very possible your packets won't come (receive) on sequence? I mean, I think UDP, when you send some data, the data may not be received in sequence of the sending...

    Or is that handled by the Winsock control???
    "Experience is something you don't get until just after you need it."

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