}
void
-on_message_received(sap_peer_agent_h peer_agent, unsigned int payload_length, void *buffer,
- void *user_data) /* message exchange on_receive callback (sap_agent_data_received_cb) */
-{
- char *peer_app;
- sap_peer_agent_get_app_name(peer_agent, &peer_app);
- dlog_print(DLOG_INFO, TAG, "received data: %s, len:%d from %s", (char *)buffer, payload_length, peer_app);
- g_free(peer_app);
-}
-
-void
on_data_received(sap_socket_h socket, unsigned short int channel_id, unsigned int payload_length, void *buffer,
void *user_data) /* message exchange on_receive callback (sap_agent_data_received_cb) */
{