Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: TCP Client is not working

by golux (Pilgrim)
on Aug 22, 2013 at 13:52 UTC ( #1050528=note: print w/ replies, xml ) Need Help??


in reply to TCP Client is not working

Hi Rahul Gupta,

When you write to the socket from the client, be sure to put a newline at the end:

$socket->send("Check Connectivity\n");

That makes the program seem to work for me, all the way to:

recieved_data=======>Sending Command 'dir' recieved_data=======>client.pl server.pl recieved_data=======> recieved_data=======>normal-exit recieved_data=======>done

which it wasn't getting to before.

say  substr+lc crypt(qw $i3 SI$),4,5


Comment on Re: TCP Client is not working
Select or Download Code
Re^2: TCP Client is not working
by Rahul Gupta (Sexton) on Aug 23, 2013 at 05:05 UTC

    Thanks for you reply.

    It worked for me :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2015-07-07 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls