/* vccd/include/vcc/vccd.h
*
* This file is part of vccd.
*
* vccd 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, either version 3 of the License, or
* (at your option) any later version.
*
* vccd 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 vccd. If not, see
*/
#ifndef __VCC_VCCD_H
#define __VCC_VCCD_H
#include
#include
#include
#include
#define vcc_log(msg, ...) fprintf(stderr, "[%ld] " msg, times(NULL), ##__VA_ARGS__)
int vcc_new_connection(int fd, struct in_addr *addr);
int vcc_close_connection(int fd);
int vcc_write_packages(int fd);
int vcc_new_msg(int fd, struct vcc_request *buf);
#endif