Daemons, once launched, are always running. Once you have FORKed it, (and gotten the PID as described by the previous poster), you can open socket connections to both and communicate as simultaneously as your OS's scheduler will let you. Both daemons and your original process will remain running until you terminate them; that's the nature of daemons.