Lines Matching refs:what
137 client_error(struct bufferevent *bufev, short what, void *arg)
141 if (what & EVBUFFER_EOF)
143 else if (what == (EVBUFFER_ERROR | EVBUFFER_READ))
145 else if (what & EVBUFFER_TIMEOUT)
147 else if (what & EVBUFFER_WRITE)
148 logmsg(LOG_ERR, "#%d client write error: %d", s->id, what);
150 logmsg(LOG_ERR, "#%d abnormal client error: %d", s->id, what);
935 server_error(struct bufferevent *bufev, short what, void *arg)
939 if (what & EVBUFFER_EOF)
941 else if (what == (EVBUFFER_ERROR | EVBUFFER_READ))
943 else if (what & EVBUFFER_WRITE)
944 logmsg(LOG_ERR, "#%d server write error: %d", s->id, what);
945 else if (what & EVBUFFER_TIMEOUT)
948 logmsg(LOG_ERR, "#%d abnormal server error: %d", s->id, what);