stonecolddevin has asked for the wisdom of the Perl Monks concerning the following question:

Ok Monks, hypothetical situation:
I have a support chat room I would like to be able to connect to with C/C++, perl, etc.. from any remote or local location. First, without specifics, how might one do this? Second, is it something I should possibly pursue? and Third, what kind of security feature am I going to have to enable/integrate in order for something like this to work safely? Thank you all, and have a splendid day. -Dhoss Ergo!!! Vis a Vis!!! Concordidly!!! Mr. Timberlake. I apologize. I don't usually like to use my big voice.
Will Ferrill as the Architect from the Matrix 2:Reloaded
  • Comment on Creating a server you can connect to in perl?

Replies are listed 'Best First'.
Re: Creating a server you can connect to in perl?
by cLive ;-) (Prior) on Jun 30, 2003 at 05:31 UTC
    Sockets. I think you need to read Lincoln's book.

    As to security, I assume some sort of public key cryptography would be useful. Blowfish maybe?

    And a quick look at our very own network programming Q&A would probably help too.

    cLive ;-)

Re: Creating a server you can connect to in perl?
by chromatic (Archbishop) on Jun 30, 2003 at 03:32 UTC

    First, you'll have to make it accessible. That probably means putting it on an Internet-addressible server on a public port. You might use an existing protocol such as IRC; that's handy.

    I can't answer the other two questions. What do you mean "safely"? What does it need to do? Who should be able to connect? What shouldn't people be able to do?

      I just want to make sure that no one would sabotage it, rendering it useless or horribly maimed, or put raunchy photos/messages on it.
      Ergo!!! Vis a Vis!!! Concordidly!!! Mr. Timberlake. I apologize. I don't usually like to use my big voice.
      Will Ferrill as the Architect from the Matrix 2:Reloaded
Re: Creating a server you can connect to in perl?
by strat (Canon) on Jun 30, 2003 at 08:10 UTC
    Maybe How to Write a Chat Server gives you some interesting ideas

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Re: Creating a server you can connect to in perl?
by naChoZ (Curate) on Jun 30, 2003 at 12:25 UTC
    Not sure if you're interested in alternatives, but this one is worth a look. My company uses this very heavily. There are clients written in perl, c, c++, java, tcl/tk, even delphi.

    ~~
    naChoZ