16#define PORT_QMQP "628"
51 unsigned long len = 0;
56 if (ch ==
':')
return len;
58 len = 10 * len + (ch -
'0');
66 if (ch !=
',')
_exit(100);
88 local = env_get(
"TCP6LOCALHOST");
119 return byte_chr(
buf,len,
'\0') == len;
173 len = fmt_str(
buf,
"Kok ");
174 len += fmt_ulong(
buf + len,(
unsigned long)
now());
175 len += fmt_str(
buf + len,
" qp ");
176 len += fmt_ulong(
buf + len,
qp);
182 result =
"Dsorry, I can't accept addresses like that (#5.1.3)";
184 buffer_put(&
bo,
strnum,fmt_ulong(
strnum,(
unsigned long) str_len(result)));
185 buffer_puts(&
bo,
":");
186 buffer_puts(&
bo,result);
187 buffer_puts(&
bo,
",");
ssize_t saferead(int fd, char *buf, int len)
void qmail_to(struct qmail *, char *)
void qmail_from(struct qmail *, char *)
void qmail_put(struct qmail *, char *, int)
char * qmail_close(struct qmail *)
unsigned long qmail_qp(struct qmail *)
int qmail_open(struct qmail *)
void qmail_fail(struct qmail *)