http://www.perlmonks.org?node_id=997088

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

Hey monks! Sorry I don't have any code to share, I really don't even know where to begin on this one. Basically, what I am trying to accomplish is the creation of a Windows service that listens on a port, and when any packets are sent to the service a preformatted packet is sent back. Basically, I just want the service to send this one packet, and basically it sends this one packet no matter what is received. Any help getting on the right track here is much appreciated. Thank you guys!
  • Comment on How do create a windows service that simply sends a packet?

Replies are listed 'Best First'.
Re: How do create a windows service that simply sends a packet?
by Anonymous Monk on Oct 03, 2012 at 16:34 UTC
Re: How do create a windows service that simply sends a packet?
by NetWallah (Canon) on Oct 04, 2012 at 04:19 UTC
    You should probably start with developing a program that listens and prints a packet.

    This is what would be considered to be a minimalist socket "server".

    Once that works, you can be a "Client" - that can send a packet. Have the client send a packet to the lister, and ensure that works.

    Code samples and explanations are in "perldoc perlipc".

    If you run into specific issues (and you will), post your question here.

    Once the socket send/listen work, add the Windows service using the suggested modules from the previous node by Anonymous Monk.

                 I hope life isn't a big joke, because I don't get it.
                       -SNL