engine/main_loop.h File Reference

#include "../config.h"
#include "hlbr.h"

Go to the source code of this file.

Functions

int MainLoop ()
int RouteAndSend (int)


Function Documentation

int MainLoop (  ) 

Main loop, start handling packets. Calls one of the two other functions: MainLoopThreaded() if HLBR is running in multi-thread mode, or MainLoopPolling(), if in single-thread mode.

Returns:
Always FALSE?

Definition at line 350 of file main_loop.c.

References DEBUGPATH, FALSE, Globals, global_vars::Interfaces, interface_rec::IsPollable, MainLoopPoll(), global_vars::NumInterfaces, PRINTERROR, and global_vars::UseThreads.

Referenced by main().

int RouteAndSend ( int  PacketSlot  ) 

Apply the routing and send out the packet.

Definition at line 55 of file main_loop.c.

References DBG, DEBUGPATH, FALSE, Globals, packet_rec::InterfaceNum, global_vars::Interfaces, interface_rec::Name, global_vars::NumRoutes, global_vars::Packets, packet_rec::PassRawPacket, PRINTERROR, packet_rec::RawPacket, Route(), packet_rec::TargetInterface, TRUE, and WritePacket().

Referenced by ProcessPacket().


Generated on Sat Jul 7 23:33:10 2007 for HLBR by  doxygen 1.5.2