View previous topic :: View next topic |
Author |
Message |
pqnelson
Joined: 03 Jun 2007 Posts: 13 Location: Davis
|
Posted: Sun Jun 03, 2007 1:23 pm Post subject: Linux Daemon in D |
|
|
Hello!
I've become increasingly interested in interprocess communication, and was hoping to play around with D to do it. I'm trying to make a simple client-server model, where the client and the server are both (D) Threads from the std.thread package...but the server is a daemon.
I am, however, really new to D...so I am unsure if the "std.c.linux" package would contain the functions/classes/etc. that I would need to accomplish this.
Even then, I would like to try to work with the "std.thread" module alone...but I am unsure if this would be feasible or not (and if it is, I am unsure what to do to daemonize a D thread!).
Any help would be greatly appreciated! |
|
Back to top |
|
|
cracki
Joined: 07 May 2007 Posts: 10 Location: Germany
|
Posted: Mon Jun 04, 2007 3:29 am Post subject: |
|
|
unix daemons are whole processes.
you can't split a process into a "daemon" thread and another thread.
here some stuff on IPC
http://www.ecst.csuchico.edu/~beej/guide/ipc/ _________________ ...meh... |
|
Back to top |
|
|
pqnelson
Joined: 03 Jun 2007 Posts: 13 Location: Davis
|
Posted: Mon Jun 04, 2007 6:27 pm Post subject: |
|
|
Thanks, that link cleared up a lot of my conceptual problems.
You've also given me a wee bit to think about too. Cheers! |
|
Back to top |
|
|
|