You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/include/llarp/router.h

36 lines
1013 B
C

7 years ago
#ifndef LLARP_ROUTER_H_
#define LLARP_ROUTER_H_
#include <llarp/config.h>
#include <llarp/ev.h>
#include <llarp/ibmq.h>
6 years ago
#include <llarp/logic.h>
#include <llarp/obmd.h>
#include <llarp/threadpool.h>
7 years ago
#ifdef __cplusplus
extern "C" {
#endif
7 years ago
struct llarp_router;
7 years ago
struct llarp_router *llarp_init_router(struct llarp_alloc * mem, struct llarp_threadpool *worker, struct llarp_ev_loop * netloop, struct llarp_logic *logic);
7 years ago
void llarp_free_router(struct llarp_router **router);
7 years ago
6 years ago
bool llarp_configure_router(struct llarp_router *router,
6 years ago
struct llarp_config *conf);
7 years ago
void llarp_run_router(struct llarp_router *router);
7 years ago
void llarp_stop_router(struct llarp_router *router);
/** get router's inbound link level frame queue */
struct llarp_link_queue *llarp_router_link_queue(struct llarp_router *router);
/** get router's outbound link level frame dispatcher */
7 years ago
struct llarp_link_dispatcher *llarp_router_link_dispatcher(
struct llarp_router *router);
7 years ago
#ifdef __cplusplus
}
#endif
#endif