2001-12-27 23:30:36 +00:00
|
|
|
/*
|
|
|
|
|
* 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
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2003-07-30 19:57:13 +00:00
|
|
|
#ifndef SOCK_H
|
|
|
|
|
#define SOCK_H
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2001-05-25 03:14:27 +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...*/
|
2003-08-10 02:29:32 +00:00
|
|
|
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();
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|