* @brief Emulates some message processing logic, that will update the `input` packet * and write the result to the `output` buffer, returning the output length. * * This function will be called on the server size to reply each message. * It is also called on the client side to validate the received response. */
| 6669 | * It is also called on the client side to validate the received response. |
| 6670 | */ |
| 6671 | std::size_t packet_modify(char const *input, std::size_t input_length, char *output) { |
| 6672 | // Echo the input packet back. Any wiser suggestions? |
| 6673 | std::memcpy(output, input, input_length); |
| 6674 | return input_length; |
| 6675 | } |
| 6676 | |
| 6677 | #pragma region POSIX |
| 6678 |