Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#23 Network Functions

open
None
5
2005-08-22
2005-07-26
Gilad Novik
No

I'm submitting a file I've wrote for using wininet
functions. Since there are not network functions in WTL
(unlike in MFC), I had to write my own functions. I've
used exceptions in order to simplify usage as much as
possible.

Example:
CInternetSession Session;
CHttpFile File(Session,_T("http://www.sourceforge.net"));
BYTE Buffer[4096];
for (DWORD
dwRead;dwRead=File.Read(Buffer,sizeof(Buffer)););

TODO:
Gopher support (same style as FTP connection and findfile)
A better support for callbacks (via
CInternetStatucCallback)
Preprocessor option to enable/disable exception usage
Review the code for possible bugs

Discussion

    • assigned_to: nobody --> nenadstefanovic
     
  • Gilad Novik
    Gilad Novik
    2006-02-20

    Logged In: YES
    user_id=225303

    I've removed all exceptions from code, as well as status
    callback support.

     
  • Gilad Novik
    Gilad Novik
    2006-02-20

    WININET Wrappers

     
    Attachments