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 */
|