Obsolete
/
libipc-old
Archived
3
0
Fork 0

minor changes

more_to_read
Philippe PITTOLI 2017-08-26 01:07:29 +02:00
parent 2ad37c2a72
commit 7fbd7e98df
3 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,17 @@
# remoted
This service creates a path on the relevent remote location, going through anything network-related: TCP, UDP, HTTP, ...
# TODO
### authorizations
The idea is to have a simple configuration file for authentication of remote connections, such as:
clients = { "client123", alice.example.com, john@doe.com }
level1services = { pongd, weather }
ifext = enp0s25
pass in on $ifext from any for all to local services $level1services
pass in on $ifext from any for all to local services $level1services

View File

@ -55,10 +55,9 @@ void main_loop (int argc, char **argv, char **env
(void) argv;
(void) env;
#if 0
struct service srv;
memset (&srv, 0, sizeof (struct service));
remote_connection (argc, argv, env, &srv);
printf ("connected\n");

View File

@ -23,7 +23,12 @@ void handle_signal (int signalnumber)
exit (EXIT_SUCCESS);
}
void remoted_init () { /* TODO */}
void remoted_init ()
{
/* TODO
* handle authorizations
*/
}
int
main(int argc, char **argv, char **env)
@ -49,7 +54,7 @@ main(int argc, char **argv, char **env)
// the service will loop until the end of time, a specific message, a signal
remoted_main_loop (&srv);
// the application will shut down, and remove the service named pipe
// the application will shut down, and remove the service unix socket
if (srv_close (&srv) < 0) {
handle_error("srv_close < 0");
}