mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
315798a0c4
* fix various crashes and race conditions * rename iwp-connect to connect in config * rename iwp-links to bind in config * always make a link just for outbound sessions even if no bind section is provided
18 lines
558 B
C
18 lines
558 B
C
#include <llarp/link.h>
|
|
|
|
bool
|
|
llarp_link_initialized(struct llarp_link* link)
|
|
{
|
|
return link && link->impl && link->name && link->get_our_address
|
|
&& link->configure && link->start_link && link->stop_link
|
|
&& link->iter_sessions && link->try_establish && link->sendto
|
|
&& link->has_session_to && link->mark_session_active && link->free_impl;
|
|
}
|
|
|
|
bool
|
|
llarp_link_session_initialized(struct llarp_link_session* s)
|
|
{
|
|
return s && s->impl && s->sendto && s->timeout && s->close
|
|
&& s->get_remote_router && s->established && s->get_parent;
|
|
}
|