|
-
Aug 1st, 2000, 02:08 PM
#1
Thread Starter
New Member
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.
-
Aug 1st, 2000, 02:26 PM
#2
Lively Member
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
-
May 15th, 2002, 05:03 AM
#3
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|