forked from franciozzy/synexec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
synexec_comm.h
46 lines (39 loc) · 1.41 KB
/
synexec_comm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* ------------------------------------
* synexec - Synchronised Executioner
* ------------------------------------
* synexec_comm.h
* ----------------
* Copyright 2014 (c) Citrix
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version only.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Read the README file for the changelog and information on how to
* compile and use this program.
*/
#ifndef SYNEXEC_COMM_H
#define SYNEXEC_COMM_H
// Header files
#include <sys/select.h>
#include "synexec_common.h"
// Definitions
#define SYNEXEC_COMM_TIMEOUT_SEC 1
#define SYNEXEC_COMM_TIMEOUT_USEC 0
// Function prototypes
int
comm_init(uint16_t _net_udpport, char *_net_ifname, char force_bcast);
int
comm_send(int sock, char command, struct timeval *timeout, void *data, uint16_t datalen);
int
comm_recv(int sock, synexec_msg_t *net_msg, struct timeval *timeout, void **data, uint16_t *datalen);
#endif /* SYNEXEC_COMM_H */