Hey All,
I've got an embedded Linux system (running a fairly recent 2.6.x Kernel) that we are developing some applications for.
I'm trying to figure out a good way to get data between C applications running on the box, more specifically a one-to-many scenario.
I like the idea of using the networking system (makes it more portable to other systems) and for 1-1 connections UDP packets using the localhost address works great, however I'm not sure what to do when I need multiple receivers on the same system.
For example an application is going to read and parse GPS data from a physical (TTL) serial port and provide that information to any other subsystem/app that wants it, but you can't bind more then one receiver to the same port. UDP is nice since you just sendto() and if something is out there, they get it, and if not they don't. But I'm not sure of the best approach. RAM isn't an issue.
Any ideas?
I've got an embedded Linux system (running a fairly recent 2.6.x Kernel) that we are developing some applications for.
I'm trying to figure out a good way to get data between C applications running on the box, more specifically a one-to-many scenario.
I like the idea of using the networking system (makes it more portable to other systems) and for 1-1 connections UDP packets using the localhost address works great, however I'm not sure what to do when I need multiple receivers on the same system.
For example an application is going to read and parse GPS data from a physical (TTL) serial port and provide that information to any other subsystem/app that wants it, but you can't bind more then one receiver to the same port. UDP is nice since you just sendto() and if something is out there, they get it, and if not they don't. But I'm not sure of the best approach. RAM isn't an issue.
Any ideas?