text: #include "server.h"
  
  gssize mx_send_data(GDataOutputStream *data_out, gchar *data) {
      GError *error = NULL;
      gsize size = 0;
  
      data = g_strjoin("\n", data, "\0", NULL);
      if (g_data_output_stream_put_string(data_out, data, NULL, &error)) {
          g_print("Successfully push\n");
      }
      else {
          g_error("Write string error\n");
  
      }
      if (error) {
          g_error("%s\n", error->message);
          g_clear_error(&error);
      }
      return size;
  }
  