MCPcopy Create free account
hub / github.com/dillo-browser/dillo / get_message

Function get_message

dpid/dpid.c:847–860  ·  view source on GitHub ↗

! * Get value of msg field from dpi_tag * \Return * message on success, NULL on failure */

Source from the content-addressed store, hash-verified

845 * message on success, NULL on failure
846 */
847char *get_message(int sock_fd, char *dpi_tag)
848{
849 char *msg, *d_cmd;
850
851 msg = a_Dpip_get_attr(dpi_tag, "msg");
852 if (msg == NULL) {
853 ERRMSG("get_message", "failed to parse msg", 0);
854 d_cmd = a_Dpip_build_cmd("cmd=%s msg=%s",
855 "DpiError", "Failed to parse request");
856 (void) CKD_WRITE(sock_fd, d_cmd);
857 dFree(d_cmd);
858 }
859 return (msg);
860}
861
862/*
863 * Compare a struct service pointer and a service name

Callers 1

send_sockportFunction · 0.85

Calls 3

a_Dpip_get_attrFunction · 0.85
a_Dpip_build_cmdFunction · 0.85
dFreeFunction · 0.85

Tested by

no test coverage detected