Re: TCP/IP using perl

2012-04-07 Thread Ori Idan
On Sat, Apr 7, 2012 at 5:47 PM, Diego Iastrubni wrote: > On שבת 07 אפריל 2012 16:39:12 Shlomi Fish wrote: > > Otherwise, does Wireshark tell you anything suspicious? > > You may also use "nc -l | hexdump -C" to debug the data on the "server". > But I > assume you already did that. > Thank you Die

Re: TCP/IP using perl

2012-04-07 Thread Diego Iastrubni
On שבת 07 אפריל 2012 16:39:12 Shlomi Fish wrote: > Otherwise, does Wireshark tell you anything suspicious? You may also use "nc -l | hexdump -C" to debug the data on the "server". But I assume you already did that. ___ Linux-il mailing list Linux-il@cs

Re: TCP/IP using perl

2012-04-07 Thread Shlomi Fish
Hi Ori, Happy Passover to everybody. some comments on your code. On Sat, 7 Apr 2012 10:20:35 +0300 Ori Idan wrote: > I have a simple device that I need to send few lines of data in TCP > protocol. > The device should respond on each line sent. > > I am using the following code: > > #!/usr/bi

TCP/IP using perl

2012-04-07 Thread Ori Idan
I have a simple device that I need to send few lines of data in TCP protocol. The device should respond on each line sent. I am using the following code: #!/usr/bin/perl use IO::Socket::INET; my ($socket,$client_socket); $socket = new IO::Socket::INET ( PeerHost => '192.168.0.20', PeerPort => '