Solved

Server programming on Linux RedHat 9

Posted on 2003-10-21
3
188 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 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now