- char *bufp = inbuf, *endp;
-
- /* Strategy:
- - Read as much as possible from the TCP socket in one go.
- - Decrypt it.
- - Check if a full request is in the input buffer.
- - If yes, process request and remove it from the buffer,
- then check again.
- - If not, keep stuff in buffer and exit.
- */
-
- buffer_compact(&c->inbuf, MAXBUFSIZE);
-
- if(sizeof inbuf <= c->inbuf.len) {
- logger(mesh, MESHLINK_ERROR, "Input buffer full for %s (%s)", c->name, c->hostname);
- return false;
- }