- Modified forking. Child will now signal parent when it has started up OK. Only after that (or error) parent dies.

- Modified startup order of LCDd parts.
- Moved code for starting up the socket from main.c to sock.c
- Variable daemon_mode renamed to foreground_mode, consistent with command line.
- Variable lcd_port renamed to bind_port.
- Modified the constant stay_in_foreground for drivers hd44780 and sed1330. They don't need to stay in foreground anymore.
This commit is contained in:
robijn
2003-07-30 19:57:13 +00:00
parent b5f750f4f3
commit 75cd8a1112
6 changed files with 227 additions and 131 deletions
+5 -5
View File
@@ -9,17 +9,17 @@
*
*/
#ifndef SOCKETS_H
#define SOCKETS_H
#ifndef SOCK_H
#define SOCK_H
#include "shared/sockets.h"
typedef struct sockaddr_in sockaddr_in;
/* Server functions...*/
int sock_create_server ();
int sock_create_inet_socket (unsigned short int port);
int sock_init ();
int sock_shutdown ();
int sock_create_inet_socket (char * addr, unsigned int port);
int sock_poll_clients ();
int read_from_client (int filedes);
#endif