|
@@ -25,8 +25,10 @@
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
#include <arpa/inet.h>
|
|
#include <arpa/inet.h>
|
|
|
#include <vcc/vcc.h>
|
|
#include <vcc/vcc.h>
|
|
|
|
|
+#include <sys/times.h>
|
|
|
|
|
+
|
|
|
|
|
+#define vcc_log(msg, ...) fprintf(stderr, "[%ld] " msg, times(NULL), ##__VA_ARGS__)
|
|
|
|
|
|
|
|
-#define vcc_log(msg, ...) fprintf(stderr, msg, ##__VA_ARGS__)
|
|
|
|
|
|
|
|
|
|
int vcc_new_connection(int fd, struct in_addr *addr);
|
|
int vcc_new_connection(int fd, struct in_addr *addr);
|
|
|
int vcc_close_connection(int fd);
|
|
int vcc_close_connection(int fd);
|