in reply to Re^3: IO::Socket Listen
in thread IO::Socket Listen
I have already read the spec , the device is a High Power Amplificator and i'm sending commands to another equipment that controls the HPA called controller,acording to the spec i have to send CR and LF so the controller can understand what i want ( in this case i want the output power level ) to be honest the specs don't have anything useful about the communication.
The lenght of the pakage that i receive is 131 bytes ( it sends 2 pakages one with 63 bytes and another with 68 bytes i'm using wireshark to trace the pakages)
i used Eliya solution and I still have a big delay
Here is the answer of my program
Changed 1000 to 131 and 2000 but still no fast response♠A?42.3< 30D 0.111.3♥) 210 Seconds Delay
while ( sysread $socket, $_, 131 ) { # 2000 , 1000 print $_; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: IO::Socket Listen
by Eliya (Vicar) on Dec 06, 2011 at 14:26 UTC | |
by Secalles (Initiate) on Dec 06, 2011 at 14:45 UTC | |
by Eliya (Vicar) on Dec 06, 2011 at 15:03 UTC | |
by Secalles (Initiate) on Dec 07, 2011 at 11:29 UTC | |
by Marshall (Canon) on Dec 08, 2011 at 06:55 UTC | |
|
In Section
Seekers of Perl Wisdom