Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Looking for a Module/Framework to write a TCP server

by unlinker (Monk)
on Dec 03, 2011 at 20:51 UTC ( #941570=perlquestion: print w/ replies, xml ) Need Help??
unlinker has asked for the wisdom of the Perl Monks concerning the following question:

I am planning to write a small TCP server with a custom binary request-response scheme for use in my application. What would be a good Perl module/framework to use that would speed up and simplify development? Here is a list of broad requirements:

  1. The request-response is binary but simple with only a few commands.
  2. I need to maintain state
  3. The request could include large payloads
  4. I need to build this quickly as a prototype to demonstrate an idea

Thank you for your attention

Comment on Looking for a Module/Framework to write a TCP server
Re: Looking for a Module/Framework to write a TCP server
by CountZero (Bishop) on Dec 03, 2011 at 20:58 UTC
    CPAN is your friend (and is easy to search): Net::EasyTCP - Easily create secure, bandwidth-friendly TCP/IP clients and servers.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      Thanks you for suggesting Net::EasyTCP. I looked at the docs and a few examples illustrating how this module could be used. Unfortunately (for me!), using this to write a server constrains it to speak to clients written using the same class: something I cannot guarantee in the present project. Apart from this constraint, it does look like a great module and I will look for an opportunity to use it in the future.

Re: Looking for a Module/Framework to write a TCP server
by salva (Abbot) on Dec 03, 2011 at 22:13 UTC
Re: Looking for a Module/Framework to write a TCP server
by vinian (Beadle) on Dec 04, 2011 at 04:08 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-21 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls