Search the web
Sign In
New User? Sign Up
newtonprogramming · Apple Newton Programming
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Proper way to terminate an nHTTPLib inbound transmission   Message List  
Reply | Forward Message #9 of 29 |

Folks,

I'm fetching and parsing an HTML file with nHTTPLib, and I'd like to
know the appropriate way to terminate the connection (without
producing an error or throwing an exception, preferably). Say that I
only want to process the HEAD element of the HTML -- I'd like to stop
reading the HTML file once I'm done processing the HEAD rather than
reading the rest of the file.

I've read in the Programmer's Guide and Reference about setting a NIL
input-spec via calling SetInputSpec, but it also warns that doing this
from within an active InputSpec may produce an error. I've read about
sending a Cancel message to the endpoint, but I don't know where to
send such a message given that the endpoint is somewhere inside
nHTTPLib.

After I've terminated the transmission, I'm hoping that the rest of
the nHTTPLib processing will end normally, such as receiving an
MConnectionClosed message, etc.

Any ideas or places where I should look for examples?

Gavin






Sat Feb 12, 2005 12:41 pm

gtumbles
Offline Offline
Send Email Send Email

Forward
Message #9 of 29 |
Expand Messages Author Sort by Date

Folks, I'm fetching and parsing an HTML file with nHTTPLib, and I'd like to know the appropriate way to terminate the connection (without producing an error or...
Gavin McKenzie
gtumbles
Offline Send Email
Feb 12, 2005
8:11 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help