Does Boost C++ have a Download/Web Library [duplicate] - c++

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Boost.ASIO-based HTTP client library (like libcurl)
Does Boost C++ have a namespace/library that downloads a file via HTTP or FTP? I am writting an application that will download an XML file.
The application needs to work on Windows XP and up which is why I am looking at Boost C++ because of portability and speed of development.
If Boost doesn't have a download library, do you know of a library that can download a file and is Cross Windows Version compatible?

Boost.Asio may be what you want.
There is another good C++ Library named C++ Poco, which also provides HTTP/FTP download functionality.

Related

how can I create a folder(directory) in c++ that works on windwos and linux [duplicate]

This question already has answers here:
Cross Platform Way to make a directory including subfolders?
(3 answers)
Closed 4 years ago.
I have to write a program in c++ that creates a directory but it must be work on linux and windows(10) . I already wirte a program that creates a folder(directory) but with the library it is not compatible with linux .
thank you in advance.
Use boost library as
boost::filesystem::create_directory(path);
To use boost, you have to add boost library and use this header for filesystem
#include <boost/filesystem.hpp>

How can I port my program written in C++ (depends on Boost Library) and compiled with Linux GCC, to Windows?

I have written a program in C++, which uses Boost Library (a c++ library used for various functions, from networking, computing to multitasking). I need to make that program work in windows.
What is the shortest path? I can find boost library for windows, and compile my code against that library, or I can rewrite my program in Java (boost functionalities I use already exists in java)?
Yes, Boost library exists for Windows. See: Boost Getting Started on Windows.

How to find dependent libraries [duplicate]

This question already has answers here:
How to show all shared libraries used by executables in Linux?
(14 answers)
Closed 9 years ago.
I got a C/C++ application, i need to determine all (shared) libraries on which it is dependent, so i can share it with other people along with libraries so they don't have to install any package, on Linux.
So is it possible to determine all libraries on which a C++ application is dependent?
A little clarification, i dont have application makefiles for the moment, thats why i have to find another way.
I think for linux you can use ldd command. You can see the man page for this command or also find this here http://linux.about.com/library/cmd/blcmdl1_ldd.htm.
Try to use ldd which will list the dependent libraries for that executable

Where can I download the pthread.h, semophore.h and their libraries? [duplicate]

This question already has answers here:
Using pthread.h on a windows build
(3 answers)
Closed 9 years ago.
Where can I download the pthread.h, semophore.h and their libraries for C?
I need to download for windows. And also please give the linking procedure for VS2010.
Windows got its own threading mechanism and is not dependent on pthread etc, similarly it also got semaphores (http://msdn.microsoft.com/en-us/library/windows/desktop/ms686946(v=vs.85).aspx), but there are pthread port for windows http://sourceware.org/pthreads-win32/, you can give it a try.
Windows does not support pthread libray because windows it's not a POSIX system
The pthread is POSIX and it's available only for POSIX system like linux, BSD, Mac OS X etc... but not available for windows
You have to use portable pthread solution for windows instaed like the solution that Saqlain provide in his answer.
I did not advise to use the portable solution I advise to use the ways that your Operating system provide. And Windows has its own way to manage threads and semaphore
BTW: Using the POSIX pthread library is not by just include the header file pthread.h and semophore.h you have also to use the library (*.so or *.a) because it's needed in the linkage phase in your build.

Best C/C++ Network Library

This question's answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions.
I haven't done work in C/C++ for a little bit and was just wondering what people's favorite cross platform libraries are to use.
I'm looking for something that is a good quick and dirty library as well as a library that is a little more robust. Often those are two different libraries and that's okay.
Aggregated List of Libraries
Boost.Asio is really good.
Asio is also available as a stand-alone library.
ACE is also good, a bit more mature and has a couple of books to support it.
C++ Network Library
POCO
Qt
Raknet
ZeroMQ (C++)
nanomsg (C Library)
nng (C Library)
Berkeley Sockets
libevent
Apache APR
yield
Winsock2(Windows only)
wvstreams
zeroc
libcurl
libuv (Cross-platform C library)
SFML's Network Module
C++ Rest SDK (Casablanca)
RCF
Restbed (HTTP Asynchronous Framework)
SedNL
SDL_net
OpenSplice|DDS
facil.io (C, with optional HTTP and Websockets, Linux / BSD / macOS)
GLib Networking
grpc from Google
GameNetworkingSockets from Valve
CYSockets To do easy things in the easiest way
yojimbo
GGPO
ENet
SLikeNet is a fork of Raknet
netcode
photon is closed source, requires license to use their sdk
crossplatform network - open source non blocking metatemplate framework built on top of boost asio