Visit the LQ Articles and Editorials section
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-13-2003, 02:09 PM   #1
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
writing a daemon

I'm looking for information for writing a daemon for linux system that has the following requirements:
  • listening only on specified ip address (config file option)
  • only allowing reqests from a specific ip/netmask (config file option)
  • queries to mysql-database (config file options for connection details)
  • all traffic should be encrypted
  • logging

I definately do not want to run cron scripts to archieve all of this; what I'm basically trying to code is a daemon which waits for a connection to be established for performing different actions like updating specific files (and the appropiate PHP-enabled frontend for it to do so).

i'm open for all kinds of suggestions :-) i will definately require knowledge of c++ coding in linux and because of that i'm looking for in-depth documents for the requirements (tutorials, etc).

Last edited by markus1982; 11-13-2003 at 02:11 PM.
Old 11-13-2003, 07:35 PM   #2
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
Well to write a daemon you will want to check out

man daemon
man 3 syslog

For network programming:

If I remember correctly this tutorial wasn't half bad,
but you have to register.

For encryption:

Since you are bothering with crypto in the first
place, I would reccomend checking MAC
addresses as well since they are harder to


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
daemon or not? ZX_SA Linux - General 2 08-08-2005 02:13 AM
writing multihoming daemon without bind blackzone Linux - Networking 0 08-26-2004 10:40 PM
Writing CD Writing Software starunj Linux - Software 1 12-28-2003 06:05 AM
which daemon or program watches writing files on floppy disk? norman68 Linux - Software 2 04-04-2003 08:08 PM
cd writing software which supports multisession writing jayakrishnan Linux - General 3 03-24-2003 06:51 AM

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration