MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / xode_send

Function xode_send

modules/xmpp/xmpp_server.c:185–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183/*****************************************************************************/
184
185static int xode_send(int fd, xode x)
186{
187 char *str = xode_to_str(x);
188 int len = strlen(str);
189
190 LM_DBG("xode_send->%d [%s]\n", fd, str);
191
192 if (net_send(fd, str, len) != len) {
193 LM_ERR("send() failed: %s\n", strerror(errno));
194 return -1;
195 }
196 return len;
197}
198
199static int xode_send_domain(char *domain, xode x)
200{

Callers 3

xode_send_domainFunction · 0.70
out_stream_node_callbackFunction · 0.70
in_stream_node_callbackFunction · 0.70

Calls 2

net_sendFunction · 0.85
xode_to_strFunction · 0.70

Tested by

no test coverage detected