1 /* @(#) $Id: ./src/client-agent/event-forward.c, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
13 /* Part of the OSSEC HIDS
14 * Available at http://www.ossec.net/hids/
21 #include "os_net/os_net.h"
27 /* Receives a message locally on the agent and forwards to the
33 char msg[OS_MAXSTR +1];
36 /* Initializing variables */
38 msg[OS_MAXSTR] = '\0';
41 while((recv_b = recv(agt->m_queue, msg, OS_MAXSTR, MSG_DONTWAIT)) > 0)