| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /* 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 <https://www.gnu.org/licenses/>
- */
- #ifndef __VCC_VCCD_H
- #define __VCC_VCCD_H
- #include <stdio.h>
- #include <arpa/inet.h>
- #include <vcc/vcc.h>
- #include <sys/times.h>
- #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
|