Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Create a web server/service with Boost Libs?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Ahmed Sayed

Posts: 173
Registered: 8/9/07
Create a web server/service with Boost Libs?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 5, 2016 6:22 AM
Hello all,

I was wondering how can i create a web server in c++ builder using only boost libraries i found these examples but i didn't understand any of it.

I know that RAD studio has Datasnap and EMS but i wanted to learn this too.

http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/examples/cpp03_examples.html

It was saying something about
boost::asio::io_service io_service_;


But i couldn't get what i have to do to create a very small example. For instance i want to be able to do the following:

//If i called this from a client 
http://www.mydomain.com/sayhello
//or
https://www.mydomain.com/sayhello
 
//The response in browser should be 
 
Hello World


Then learn how to add headers & body for request & response.

But I don't even know how to start by binding the socket on the server for listening.

Please, if anyone has experience in this matter it will be really appreciated to help.
--
The limits of my language mean the limits of my world

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02