Files
lcdproc/server/sock.h
T
marschap 7f8d84f026 added IP address input method to menus by Jeff Costlow, f5
(IPv6 support is not in good shape yet)
a few more bug fixes, more error checks
extended input methods using more key (left, righ) if they are available
2005-03-13 21:23:56 +00:00

29 lines
683 B
C

/*
* sock.h
* This file is part of LCDd, the lcdproc server.
*
* This file is released under the GNU General Public License. Refer to the
* COPYING file distributed with this package.
*
* Copyright (c) 1999, William Ferrell, Scott Scriven
* 2004, F5 Networks, Inc. - IP-address verification
*
*/
#ifndef SOCK_H
#define SOCK_H
#include "shared/sockets.h"
typedef struct sockaddr_in sockaddr_in;
/* Server functions...*/
int sock_init(char* bind_addr, int bind_port);
int sock_shutdown();
int sock_create_inet_socket(char* bind_addr, unsigned int port);
int sock_poll_clients();
int verify_ipv4(const char *addr);
int verify_ipv6(const char *addr);
#endif