LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-26-2004, 02:39 PM   #1
alekoos
Member
 
Registered: Apr 2004
Distribution: SlackWare 9.
Posts: 32

Rep: Reputation: 15
what is the difference between a daemon a client and a server?


I am really confused with those words.Let's say i have an ssh client and a server.What is the difference between the ssh client-server-daemon ??
I am giving an example to get the basic idea but i would like to read some documentation on that.
Any information appreciated
 
Old 04-26-2004, 02:51 PM   #2
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 16
To my understand a server and a deamon are the same thing. For example if you have an ftp server running, then it is just some deamon (proftpd) running in the background. A client connects to the server/deamon. For example some ftp clients include: ftp, ncftp, gftp, and im sure there are others.

-tank
 
Old 04-26-2004, 02:55 PM   #3
JimmyJ
LQ Newbie
 
Registered: Jun 2003
Location: Maine
Distribution: Slackware 10
Posts: 24

Rep: Reputation: 15
I think it can go a little deeper than that too. From my understanding, a daemon is typically part of a system startup process. It's something that is configured to run on boot. For instance, you can setup apache to either run as a daemon (it will start when the system starts) or as a stand alone server (you need to start the server manually). A client is ... well, it's whoever is connecting to that computer. That's the way I've seen it in action ...
 
Old 04-26-2004, 03:00 PM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
A daemon runs in the background doing something like monitoring files, connections, sounds, etc.
There are many types, as well -- typical "server" daemons, like proftpd, nfsd, httpd, and even things as nominal as sound servers, like esd and artsd. They simply run in the background, doing their thing for whatever their particular purpose is.
They don't have to be started at boot, though they are usually configured to do so.

Servers usually utilize daemons to run in the background.
There's also inetd, which is the internet superserver daemon -- it will start a server, (another daemon) on demand when a port is accessed by a client.

A client can be any program on any machine that accesses a server or daemon. Xmms is a client to artsd when you're running kde. Your browser is a client to httpd when you connect to a website.
Your machine and the mount program are clients when you connect to an NFS file server.
Your window manager is a client to the X-Server.

Clear things up a bit?

--Shade
 
Old 04-27-2004, 03:14 AM   #5
alekoos
Member
 
Registered: Apr 2004
Distribution: SlackWare 9.
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Shade
A daemon runs in the background doing something like monitoring files, connections, sounds, etc.
There are many types, as well -- typical "server" daemons, like proftpd, nfsd, httpd, and even things as nominal as sound servers, like esd and artsd. They simply run in the background, doing their thing for whatever their particular purpose is.
They don't have to be started at boot, though they are usually configured to do so.

Servers usually utilize daemons to run in the background.
There's also inetd, which is the internet superserver daemon -- it will start a server, (another daemon) on demand when a port is accessed by a client.

A client can be any program on any machine that accesses a server or daemon. Xmms is a client to artsd when you're running kde. Your browser is a client to httpd when you connect to a website.
Your machine and the mount program are clients when you connect to an NFS file server.
Your window manager is a client to the X-Server.

Clear things up a bit?

--Shade
Well the messy thing was to clear the difference between a daemon and a server.A daemon is a process that runs in the backround.
1)It may be a server or not ?
2)It does some work for the server or e.g. the X-daemon and the X-server is it the same thing ?? I mean when a daemon is also a server?

EDIT:
Beside my questions is there any paper that i can read the differences between server and daemon??
I search in google/linux but i find nothing

Last edited by alekoos; 04-27-2004 at 07:56 AM.
 
  


Reply


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 Server Programming.... HELP rajsun Programming 2 04-05-2005 04:28 AM
can not connect to my pureftp server from Linux client, but i can from windows client bonito Suse/Novell 5 03-16-2005 10:45 PM
Can't seem to dynamically assign my ethernet card using DHCP client daemon tre Linux - Networking 1 01-03-2004 11:21 AM
Refresh client user list at autentication client/server network. robertoneto123 Linux - Networking 0 11-11-2003 11:38 AM
start server as a daemon champ Programming 5 01-27-2003 06:40 PM


All times are GMT -5. The time now is 10:26 AM.

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