| 183 | /*****************************************************************************/ |
| 184 | |
| 185 | static 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 | |
| 199 | static int xode_send_domain(char *domain, xode x) |
| 200 | { |
no test coverage detected