Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6806701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:44:35+00:00 2026-05-26T19:44:35+00:00

OS: Linux(RedHat) Programming Language: C++ I need to create a daemon(process) for Linux using

  • 0

OS: Linux(RedHat)
Programming Language: C++

I need to create a daemon(process) for Linux using C++ that will continuously listen on a custom port for PHP requests. The PHP will send the request data in XML form to the daemon, the daemon will parse the XML using Xerces and send back an appropriate reply in XML form to the PHP page.

I have successfully created a daemon process listening on port 4646 on localhost, but what I can’t figure out is how the request from PHP will go to the daemon and how will the daemon send the reply back.

I tried google-ing for this particular problem but couldn’t find a solution at all.
Any kind of help on this problem will be very much appreciated.

I have also read a little about PHP daemons, but I’m not sure whether they are applicable in this particular scenario.

This approach is not hard and fast so any alternative approach will also do. The only thing hard and fast is the results i.e succesful communication between the PHP pages and the daemon.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:44:35+00:00Added an answer on May 26, 2026 at 7:44 pm

    Its better that u can use the php socket library to connect with the daemon running in your system and then u can pass data to the daemon and can process the result sent back by the daemon .

    You can refer the PHP Socket Library for creating code to do socket connection with daemon …

    I think this is a better option than using CURL as the daemon is also a custom socket interface , CURL will be most suitable for HTTP request’s , but i think here the daemon is not an HTTP one..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Redhat Linux and the problem I am facing is that the
I'm using Linux redhat 3, can someone explain how is that possible that i
I'm using GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu). And this command: echo -e doesn't print
I have started using Redhat Linux i would like to know how to use
I'm running a multithreaded java app in Linux RedHat 5.3 on a machine that
Will Mercurial work on Redhat Linux? I tried, yum install mercurial, with no success.
Dear all, I am using Redhat linux ,How to set maximum memory for particular
I'm trying to compile a c programming package (thc-ipv6-0.7) on Linux Redhat 2.6.9-42.ELsmp and
I'm trying to implement a syscall in Linux (RedHat Enterprise 8) and I'm a
We've developed a Java standalone program. We've configured in our Linux (RedHat ES 4)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.