... | @@ -105,5 +105,7 @@ std::cout << "Received request " << request->get() << std::endl; |
... | @@ -105,5 +105,7 @@ std::cout << "Received request " << request->get() << std::endl; |
|
|
|
|
|
// Reply a string to the requester.
|
|
// Reply a string to the requester.
|
|
request->reply("done");
|
|
request->reply("done");
|
|
}
|
|
```
|
|
``` |
|
|
|
\ No newline at end of file |
|
Like the return value, it is possible to get the request as binary data using the *getBinary()* function or method. It is also possible to reply binary data using the *replyBinary()* method or function.
|
|
|
|
The requests can also be a two-part message and the second part can be get with the *getSecondBinaryPart()* method or function. |