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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |