Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server programming on Linux RedHat 9

Posted on 2003-10-21
3
Medium Priority
?
193 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 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

715 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