FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Linux Daemon in D

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
pqnelson



Joined: 03 Jun 2007
Posts: 13
Location: Davis

PostPosted: Sun Jun 03, 2007 1:23 pm    Post subject: Linux Daemon in D Reply with quote

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
View user's profile Send private message AIM Address
cracki



Joined: 07 May 2007
Posts: 10
Location: Germany

PostPosted: Mon Jun 04, 2007 3:29 am    Post subject: Reply with quote

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
View user's profile Send private message
pqnelson



Joined: 03 Jun 2007
Posts: 13
Location: Davis

PostPosted: Mon Jun 04, 2007 6:27 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group