| 146 | } |
| 147 | |
| 148 | int net_printf(int fd, char *format, ...) |
| 149 | { |
| 150 | va_list args; |
| 151 | char buf[4096]; |
| 152 | |
| 153 | va_start(args, format); |
| 154 | vsnprintf(buf, sizeof(buf) - 1, format, args); |
| 155 | va_end(args); |
| 156 | |
| 157 | LM_DBG("net_printf: [%s]\n", buf); |
| 158 | |
| 159 | return net_send(fd, buf, strlen(buf)); |
| 160 | } |
| 161 | |
| 162 | char *net_read_static(int fd) |
| 163 | { |
no test coverage detected