1 /* @(#) $Id: ./src/remoted/remoted.h, 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
19 #define ARGV0 "ossec-remoted"
22 #include "config/remote-config.h"
26 /*** Function prototypes ***/
28 /* Read remoted config */
29 int RemotedConfig(char *cfgfile, remoted *logr);
31 /* Handle Remote connections */
32 void HandleRemote(int position, int uid);
37 /* Handle Syslog TCP */
38 void HandleSyslogTCP();
40 /* Handle Secure connections */
43 /* Forward active response events */
44 void *AR_Forward(void *arg);
46 /* Initialize the manager */
47 void manager_init(int isUpdate);
49 /* Wait for messages from the agent to analyze */
50 void *wait_for_msgs(void *none);
52 /* Save control messages */
53 void save_controlmsg(int agentid, char *msg);
55 /* Send message to agent */
56 int send_msg(int agentid, char *msg);
58 /* Initializing send_msg */
61 int check_keyupdate();
67 void keyupdate_init();
70 /*** Global variables ***/