EV_READ|EV_PERSIST,
handle_new_meta_connection, NULL);
if(event_add(&listen_socket[listen_sockets].ev_tcp, NULL) < 0) {
- logger(LOG_EMERG, "event_add failed: %s", strerror(errno));
+ logger(LOG_ERR, "event_add failed: %s", strerror(errno));
abort();
}
EV_READ|EV_PERSIST,
handle_incoming_vpn_data, NULL);
if(event_add(&listen_socket[listen_sockets].ev_udp, NULL) < 0) {
- logger(LOG_EMERG, "event_add failed: %s", strerror(errno));
+ logger(LOG_ERR, "event_add failed: %s", strerror(errno));
abort();
}
}
void handle_meta_read(struct bufferevent *event, void *data) {
- logger(LOG_EMERG, "handle_meta_read() called");
+ logger(LOG_ERR, "handle_meta_read() called");
abort();
}
void handle_meta_connection_error(struct bufferevent *event, short what, void *data) {
connection_t *c = data;
- logger(LOG_EMERG, "handle_meta_connection_error() called: %d: %s", what, strerror(errno));
+ logger(LOG_ERR, "handle_meta_connection_error() called: %d: %s", what, strerror(errno));
terminate_connection(c, c->status.active);
}
event_add(&c->inevent, NULL);
c->buffer = bufferevent_new(c->socket, handle_meta_read, handle_meta_write, handle_meta_connection_error, c);
if(!c->buffer) {
- logger(LOG_EMERG, "bufferevent_new() failed: %s", strerror(errno));
+ logger(LOG_ERR, "bufferevent_new() failed: %s", strerror(errno));
abort();
}
bufferevent_disable(c->buffer, EV_READ);
event_add(&c->inevent, NULL);
c->buffer = bufferevent_new(c->socket, NULL, handle_meta_write, handle_meta_connection_error, c);
if(!c->buffer) {
- logger(LOG_EMERG, "bufferevent_new() failed: %s", strerror(errno));
+ logger(LOG_ERR, "bufferevent_new() failed: %s", strerror(errno));
abort();
}
bufferevent_disable(c->buffer, EV_READ);