Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > EOF-file missing

Thread Tools

EOF-file missing

Tor Erik Sønvisen
Posts: n/a

From a client I read a file into a string using read().
On the server-side (it's a HTTPServer) i access the same string through the
input stream rfile.
However all useful read-methods (readlines, readline, read) expect an EOF
before terminating.
And for some reason the stream doesn't have the seek method either, so it's
impossible to set the file-pointer to the end of the stream.
how can I access the whole string then?
Is it possible to add an EOF to the string before sending it from the
client? Or maybe there are other solutions?


Reply With Quote
Posts: n/a
You can use the Content-Length header to tell the server how long the
string is.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports - Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing) Les Caudle ASP .Net 3 09-03-2007 02:27 AM
Re: missing feature classes and missing fields Gary Herron Python 2 07-04-2006 10:29 PM
missing wzcdlg.dll =?Utf-8?B?RGFuZGVl?= Wireless Networking 4 11-20-2004 02:14 PM
Missing Wireless Link applet =?Utf-8?B?Q2hyaXNzaWU=?= Wireless Networking 8 10-07-2004 07:24 PM
Missing Websites and no mail =?Utf-8?B?U2hpZnR3b3JrZXI0Mw==?= Wireless Networking 0 09-11-2004 12:31 PM