It would help if you could explain exactly what you are going to be talking to?

Perl can do an amazing job at tcp/ip communication and it will work great!
But your client software needs to know the basic messaging protocol with the server.

The general idea is that you connect to a server who is listening on some port. Then as the client, you send information and the server responds. And that is normally how it goes...request/reply...request/reply.

A Perl client can do anything that a client written in C can do. At the end of the day, you need to explain what information you need to send to the server as the request and what you expect for it to send back as the response.
Tell us that information and it is easy to write the client.

There is no generic "hey, I can talk to any server" protocol.
The protocol is server specific. There will be a way for the server to understand that all of the information for a request has been received. Then the server does its magic. There will be a way for the client to understand that all of the information for a response to its request has been be received.


In reply to Re: How to build a tcp session with a remote server? by Marshall
in thread How to build a tcp session with a remote server? by wildnature

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.