Files
lcdproc/server/sock.h
T

29 lines
691 B
C
Raw Normal View History

/*
* 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
1999-12-09 23:15:14 +00:00
#include "shared/sockets.h"
1999-12-09 23:15:14 +00:00
typedef struct sockaddr_in sockaddr_in;
2001-12-30 00:15:25 +00:00
/* Server functions...*/
int sock_init(char* bind_addr, int bind_port);
2007-04-02 21:29:53 +00:00
int sock_shutdown(void);
int sock_create_inet_socket(char* bind_addr, unsigned int port);
2007-04-02 21:29:53 +00:00
int sock_poll_clients(void);
int verify_ipv4(const char *addr);
int verify_ipv6(const char *addr);
1999-12-09 23:15:14 +00:00
#endif