SCOUG-Programming Mailing List Archives
Return to [ 03 |
June |
1998 ]
<< Previous Message <<
>> Next Message >>
Content Type: text/plain
You guys were busy yesterday.
The discussion evolved in the right direction. recv() is not guaranteed to receive all of the data from
a send() call. Also, what happens if the client decides to make one send() call for each character
(pefectly legal!).
Let's take a step back and come up with a slightly formal definition of GetLine(). We can either
define it, similar to how I have previously defined it. Or, a strategy I sort of like in other APIs, is the
name it and have it follow rules similar to fgets().
Let's proceed with with our definition of GetLine(). It must:
1. Read and return a pointer to a line of data received on the specified socket.
2. Remove any line delimiters (CR, LF, or both)
3. Must not modify the line data in any other way
4. Be able to indicate a timeout or disconnet condition
What else?
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 03 |
June |
1998 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|