Solved

Server programming on Linux RedHat 9

Posted on 2003-10-21
3
191 Views
Last Modified: 2010-04-05
Hi!

I want to programm a server on Linux RedHat 9. In windows nt there exist services to run servers. Is there something similar in Linux? How can I make a server that will run at system-start and withouth xWindows and any GUI?

I tried to work with a console application and starting threads but I do not know how to keep the server on running for example listening to any messages recieved by a TTcpServer. It has something to do with Handles and Events, but I do not know how to make this.

Any exampes would be really great!

Thanx

Kai
0
Comment
Question by:KBunk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
swift99 earned 500 total points
ID: 9597463
In linux they're called daemons.  

A daemon generally has a main thread that blocks until a kill signal is received.  It spawns a listener thread that waits for a connection to be established, then negotiates a port for the actual data connection to be made on.  When the port negotiation is complete, another thread is spawned for the specific port to communicate with.

linux/unix server programming is quite different from Windows server programming.

Check out the kylix links from overbyte.delphicenter.com  There will be some good examples there.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question