SCOUG-Programming Mailing List Archives
Return to [ 02 |
June |
1998 ]
<< Previous Message <<
>> Next Message >>
Content Type: text/plain
> >Don't you have to check every character of
> >your received data for 0Dh, 0Ah, even 0Ch?
>
> Theoretically, yes. But since the client is sending 1 line per send() it
> should not happen in this case. Same for end-of-line codes. The FTP
> protocol says commands will end with a NL code. Pretty standard for the
> Unix world.
Hmm ...
1. So if I wanted to change to a directory and then list the files
therein, I'm not allowed to code both commands into one send()?
Shouldn't we [as the world's best programmers :)] allow for multiple
commands in one send()?
2. Besides, suppose this code is still running in 10 years on a 1 Gb
link, and it's running on somebody's very old and slow computer, and
it's running at the absolute lowest priority level -- won't the buffer
end up with multiple lines occasionally? Shouldn't we plan for future
possibilities that don't affect us too much today?
- Peter Skye
=====================================================
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 [ 02 |
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.
|