From: <svn...@op...> - 2009-03-24 17:45:26
|
Author: bellmich Date: Tue Mar 24 18:45:14 2009 New Revision: 1011 URL: http://libsyncml.opensync.org/changeset/1011 Log: - If a transport implementation has no public connect function then it cannot send a connect event. - fixed some traces Modified: trunk/libsyncml/transports/http_client.c Modified: trunk/libsyncml/transports/http_client.c ============================================================================== --- trunk/libsyncml/transports/http_client.c Tue Mar 24 16:44:01 2009 (r1010) +++ trunk/libsyncml/transports/http_client.c Tue Mar 24 18:45:14 2009 (r1011) @@ -72,11 +72,16 @@ } else { - smlTransportReceiveEvent(env->tsp, NULL, SML_TRANSPORT_EVENT_CONNECT_DONE, NULL, NULL); + /* If a transport has no public connect function + * then the connect event is sent by the + * transport layer itself. + */ + smlTrace(TRACE_INTERNAL, "%s: Connect done", __func__); } env->connectDone = TRUE; } - smlTrace(TRACE_INTERNAL, "Result: %d %s", msg->status_code, msg->reason_phrase); + smlTrace(TRACE_INTERNAL, "%s: Result: %d %s", + __func__, msg->status_code, msg->reason_phrase); /* start http handling with some checks */ @@ -89,7 +94,8 @@ /* check the header of the received message */ const char *header = soup_message_headers_get(msg->response_headers, "Content-Type"); - smlTrace(TRACE_INTERNAL, "content type: %s", header); + smlTrace(TRACE_INTERNAL, "%s: content type ::= %s", + __func__, header); SmlMimeType mimetype = SML_MIMETYPE_UNKNOWN; if (header && !g_strncasecmp(header, SML_ELEMENT_XML, strlen(SML_ELEMENT_XML))) |