예제 #1
0
JsonNode*
cometd_recv(const cometd* h)
{
  JsonNode *payload = NULL;
  cometd_transport* transport = NULL;
  
  transport = cometd_current_transport(h);
  g_assert(transport != NULL);

  payload = transport->recv(h);

  if (payload == NULL)
    payload = cometd_msg_wrap(cometd_msg_bad_connect_new(h));

  return payload;
}
예제 #2
0
JsonNode*
cometd_msg_wrap_copy(JsonNode* msg)
{
    return cometd_msg_wrap(json_node_copy(msg));
}