Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

How do create a windows service that simply sends a packet?

by damaya1982 (Initiate)
on Oct 03, 2012 at 16:21 UTC ( #997088=perlquestion: print w/ replies, xml ) Need Help??
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?
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 (Abbot) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://997088]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-07-14 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (254 votes), past polls