Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Server programming on Linux RedHat 9

Posted on 2003-10-21
3
Medium Priority
?
196 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
3 Comments
 
LVL 6

Accepted Solution

by:
swift99 earned 2000 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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

885 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