Solved

Server programming on Linux RedHat 9

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

617 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