source: code/icbd.h@ dab4135

Last change on this file since dab4135 was ad8b08d, checked in by Mike Belopuhov <mike@…>, 11 years ago

Chdir to /core after start

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[cd7b81d]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"
[ad8b08d]18#define ICBD_HOME "core"
[cd7b81d]19
20#define TCP_BACKLOG 5
21
22#define EVBUFFER_FD(x) (EVENT_FD(&(x)->ev_read))
23
24extern int verbose;
25
26/* icbd.c */
[7882a6f]27void icbd_drop(struct icb_session *, char *);
28void icbd_log(struct icb_session *, int, const char *, ...);
29void icbd_send(struct icb_session *, char *, ssize_t);
[82d3c1f]30void icbd_modupdate(void);
31time_t getmonotime(void);
[cd7b81d]32
33/* dns.c */
[e87ab6d]34struct sockaddr;
35void dns_rresolv(struct icb_session *, struct sockaddr *);
[55923b7]36
37/* logger.c */
[82d3c1f]38int logger_init(void);
39void logger(char *, char *, char *);
Note: See TracBrowser for help on using the repository browser.