1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
12 #include "os_net/os_net.h"
16 /* Receive a message locally on the agent and forward it to the manager */
20 char msg[OS_MAXSTR + 1];
22 /* Initialize variables */
24 msg[OS_MAXSTR] = '\0';
26 while ((recv_b = recv(agt->m_queue, msg, OS_MAXSTR, MSG_DONTWAIT)) > 0) {