Management of daemonize. vdeq demonize concurrently with qemu or kvm
[vde.git] / vde / port.h
blob1cf4eb1100a565ad8637bee734377ec4b5315140
1 /* Copyright 2002 Jeff Dike
2 * Licensed under the GPL
3 */
5 #ifndef __PORT_H__
6 #define __PORT_H__
8 #include <sys/socket.h>
9 #include <sys/un.h>
11 //extern int handle_port(int fd);
12 extern void close_port(int i, int fd);
13 extern int setup_sock_port(int i, int fd, struct sockaddr_un *name, int data_fd, int group);
14 extern int setup_port(int i, int fd, void (*sender)(int fd, void *packet, int len,
15 void *data), void *data,
16 int data_len, int portgroup);
17 extern void handle_tap_data(int i, int fd, int hub);
18 extern int handle_sock_data(int fd, int hub);
19 extern int handle_sock_direct_data(int i, int fd, int hub);
21 #endif