[Cppcms-users] Design decision
Brought to you by:
artyom-beilis
From: Christian G. <chr...@gm...> - 2012-10-04 09:02:26
|
Hi all. My cppcms based web application is in a quite good shape and I got some ideas what new features could be added. + Detection of networking changes via PF_NETLINK socket At the moment it is possible to configure networking settings via cppcms. For instance, it is possible to use manual mode for an ethernet interface to specify ip. netmask etc. or use DHCP mode. If DHCP gets used the running system starts dhcp client and it could takes some seconds until it got a valid IP address. The basic idea is now to use SSE (server send events) and some detection threads. Create a (cppcms ?) thread per ethernet interface and run something like http://stackoverflow.com/questions/579783/how-to-detect-ip-address-change-programmatically-in-linux Then I would have a singleton class for SSE where I can call e.g. SSE::instance()->ethernet("eth0", ip,...) and my front-end can update the values. Can this work? --- Christian Gmeiner, MSc |