setDataReceivedCallback ======================= :doc:`/types/ServerSocket/index`::setDataReceivedCallback Sets the function that will be called when data is received from any client. Declaration ----------- .. code-block:: cpp void setDataReceivedCallback(std::function callback); Parameters ---------- .. list-table:: :width: 100% :header-rows: 1 :class: code-table * - Name - Type - Description * - callback - `std::function `_\ - The function that will be called when data is received from any client. Returns ------- None. Notes ----- :doc:`/types/Buffer/index` can be used to efficiently parse the data received from the client.