Last change
on this file since a2fadb4 was 460786f, checked in by Mike Belopuhov <mike@…>, 11 years ago |
Add command line switch '-n' to disable DNS
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /*
|
---|
2 | * Copyright (c) 2009 Mike Belopuhov
|
---|
3 | *
|
---|
4 | * Permission to use, copy, modify, and distribute this software for any
|
---|
5 | * purpose with or without fee is hereby granted, provided that the above
|
---|
6 | * copyright notice and this permission notice appear in all copies.
|
---|
7 | *
|
---|
8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
---|
9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
---|
10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
---|
11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
---|
12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
---|
13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
---|
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #define ICBD_USER "_icbd"
|
---|
18 |
|
---|
19 | #define TCP_BACKLOG 5
|
---|
20 |
|
---|
21 | #define EVBUFFER_FD(x) (EVENT_FD(&(x)->ev_read))
|
---|
22 |
|
---|
23 | extern int verbose;
|
---|
24 |
|
---|
25 | /* icbd.c */
|
---|
26 | inline struct icb_session *icbd_session_lookup(uint64_t);
|
---|
27 | time_t getmonotime(void);
|
---|
28 |
|
---|
29 | /* dns.c */
|
---|
30 | struct sockaddr_storage;
|
---|
31 | int dns_init(void);
|
---|
32 | void dns_rresolv(struct icb_session *, struct sockaddr_storage *);
|
---|
33 |
|
---|
34 | /* logger.c */
|
---|
35 | int logger_init(void);
|
---|
36 | void logger(char *, char *, char *);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.