e_debug(e->event(), "Server accepted connection (fd=%d)", fd_in);
connection_init_streams(conn);
+ if (conn->v.init != NULL)
+ conn->v.init(conn);
}
void connection_init_server_ip(struct connection_list *list,
also be obvious that fd_out=1. */
e_debug(e->event(), "Client connected (fd=%d)", fd_in);
+ if (conn->v.init != NULL)
+ conn->v.init(conn);
connection_client_connected(conn, TRUE);
}
if (hostname != NULL)
event_add_str(conn->event, "dest_host", hostname);
connection_update_event(conn);
+
+ if (conn->v.init != NULL)
+ conn->v.init(conn);
}
void connection_init_client_ip(struct connection_list *list,
connection_init(list, conn, path);
event_add_str(conn->event, "socket_path", path);
+
+ if (conn->v.init != NULL)
+ conn->v.init(conn);
}
void connection_init_from_streams(struct connection_list *list,
};
struct connection_vfuncs {
+ void (*init)(struct connection *conn);
void (*destroy)(struct connection *conn);
/* For UNIX socket clients this gets called immediately (unless
delayed_unix_client_connected_callback=TRUE) with success=TRUE,