Good Day,

I have a question, and I admit I am have not yet done a lot of research on this, but ;)

Here is the situation, lets say I have a perl daemon that I don't know, maintains an socket connection to a server for some reason. Lets say this daemon keeps connection information and tracks all data from the socket in both directions (read/write) . Ok, that fine and dandy. Now lets note that this daemon will usually run all the time, with a connection that always exists.

Is it possible, with lets say, a CGI for example, to connect a particular daemon that is running, and get information from it. I do not want to launch a new daemon, but connect to an existing one. I do not have a real good example of why I want to do this.

Long story short, when they access the CGI via a webpage, the daemon is consulted and information is gathered from its stored information that it has gotten from its connection, some commands may be sent to the daemon, which change what it is doing, or gets new information.

Make sense? Is it possible / are there existing examples? Thanks for the input.

In reply to CGI access to Perl Daemon by PyroX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.