File: modules.h

package info (click to toggle)
lbcd 3.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,704 kB
  • ctags: 1,065
  • sloc: ansic: 11,073; sh: 1,823; perl: 503; makefile: 164
file content (30 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Prototypes for shared load module functions.
 *
 * Written by Russ Allbery <eagle@eyrie.org>
 * Copyright 2008, 2012
 *     The Board of Trustees of the Leland Stanford Junior University
 *
 * See LICENSE for licensing terms.
 */

#ifndef MODULES_MODULES_H
#define MODULES_MODULES_H 1

#include <portable/macros.h>
#include <portable/socket.h>    /* socket_type */

BEGIN_DECLS

extern int lbcd_check_reply(int sd, int timeout, const char *token);

extern int probe_tcp(const char *host, const char *service, short port,
		     const char *replycheck, int timeout);

extern socket_type tcp_connect(const char *host, const char *protocol,
                               int port);
extern int udp_connect(const char *host, const char *protocol, int port);

END_DECLS

#endif /* !MODULES_MODULES_H */