sans-clue has asked for the wisdom of the Perl Monks concerning the following question:

The kind monks here helped me with a perl program that uses Telnet to connect to a data feed (event stream), that allowed me to parse up the stream and make very nice, before I handed it off to a very delicate program that needs data on a silver platter. So now I am told that a similar event stream process must connect to ME on a port of my choosing, which I must parse up the same way and hand off to the delicate program. Is there an off the shelf way to do this ? Can a kind monk jump start me with some code ? Thanks

Replies are listed 'Best First'.
Re: Socket Listener
by marto (Cardinal) on Mar 31, 2010 at 15:30 UTC

    Perlmonks isn't code writing service, perhaps you could do some research on Network Programming (see also the associated network programming Q&A and Networking Code). CPAN has various server frameworks available. Also, you could also take a look at How do I post a question effectively? since you don't tell us much about what this data will be like etc. Other things to consider:

    • telnet isn't very secure. You may want to look at using a secure networking protocol.
    • Does the data have to stream from this other system, can't a file be transfered (securely) into your system for parsing/munging?
    A reply falls below the community's threshold of quality. You may see it by logging in.