简体   繁体   中英

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

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.

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.

看看Boost.Asio

A level above what yo uasked for is libCurl

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM