views:

97

answers:

3

Are there C++ versions of PHP's fsockopen, fread, fwrite, fclose or anything similar?

I'm using Windows (MFC) and TCP if that changes anything.

+3  A: 

there are analogous functions for all of thoes take a look at the winsock api for particular functions.

MFC is a wrapper for much of the win32 api and has a Csoket and CAsyncSocket abstract sockets.

rerun
+1  A: 

Take a look at Boost.Asio

usta
+1  A: 

A level above what yo uasked for is libCurl

http://curlpp.org/index.php/examples/48-example-01

Martin York