Exemple #1
0
struct ns_connection *ns_bind(struct ns_mgr *srv, const char *str,
                              ns_event_handler_t callback) {
  static struct ns_bind_opts opts;
  return ns_bind_opt(srv, str, callback, opts);
}
Exemple #2
0
struct ns_connection *ns_bind(struct ns_mgr *srv, const char *address,
                              ns_event_handler_t event_handler) {
  static struct ns_bind_opts opts;
  return ns_bind_opt(srv, address, event_handler, opts);
}