- 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:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user