File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libs/network/example/http Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ struct hello_world {
28
28
/* << This is the function that handles the incoming request. >>*/
29
29
void operator () (server::request const &request,
30
30
server::response &response) {
31
- // server::string_type ip = source(request);
32
- // std::ostringstream data;
33
- // data << "Hello, " << ip << "!";
34
- // response = server::response::stock_reply(
35
- // server::response::ok, data.str());
31
+ server::string_type ip = source (request);
32
+ std::ostringstream data;
33
+ data << " Hello, " << ip << " !" ;
34
+ response = server::response::stock_reply (
35
+ server::response::ok, data.str ());
36
36
}
37
37
/* << It's necessary to define a log function, but it's ignored in
38
38
this example. >>*/
You can’t perform that action at this time.
0 commit comments