2011-12-27 14:24:47 +04:00
|
|
|
#ifndef CR_SOCKETS_H__
|
|
|
|
#define CR_SOCKETS_H__
|
|
|
|
|
2012-01-12 23:50:45 +04:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
2011-12-27 14:24:47 +04:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2011-12-26 22:12:03 +04:00
|
|
|
struct cr_fdset;
|
2012-03-29 16:40:10 +04:00
|
|
|
struct fd_parms;
|
|
|
|
extern int dump_socket(struct fd_parms *p, int lfd,
|
2012-03-29 16:44:15 +04:00
|
|
|
const struct cr_fdset *cr_fdset);
|
2011-12-27 14:24:47 +04:00
|
|
|
|
2012-04-05 12:45:30 +04:00
|
|
|
struct fdinfo_list_entry;
|
2012-04-06 20:03:31 +04:00
|
|
|
struct file_desc;
|
2012-04-06 19:27:08 +04:00
|
|
|
struct fdinfo_entry;
|
2011-12-27 14:24:47 +04:00
|
|
|
extern int collect_sockets(void);
|
2012-04-26 14:20:22 +04:00
|
|
|
extern int fix_external_unix_sockets(void);
|
2012-04-03 00:54:52 +04:00
|
|
|
extern int collect_inet_sockets(void);
|
2012-04-06 19:27:08 +04:00
|
|
|
extern int collect_unix_sockets(void);
|
|
|
|
extern int resolve_unix_peers(void);
|
|
|
|
extern int run_unix_connections(void);
|
2012-03-27 12:01:14 +04:00
|
|
|
struct cr_options;
|
|
|
|
extern void show_unixsk(int fd, struct cr_options *);
|
|
|
|
extern void show_inetsk(int fd, struct cr_options *);
|
|
|
|
extern void show_sk_queues(int fd, struct cr_options *);
|
2011-12-27 14:24:47 +04:00
|
|
|
|
|
|
|
#endif /* CR_SOCKETS_H__ */
|