1 /* @(#) $Id: event-forward.c,v 1.14 2009/06/24 17:06:24 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 3) as published by the FSF - Free Software
12 /* Part of the OSSEC HIDS
13 * Available at http://www.ossec.net/hids/
20 #include "os_net/os_net.h"
26 /* Receives a message locally on the agent and forwards to the
32 char msg[OS_MAXSTR +1];
35 /* Initializing variables */
37 msg[OS_MAXSTR] = '\0';
40 while((recv_b = recv(logr->m_queue, msg, OS_MAXSTR, MSG_DONTWAIT)) > 0)