in reply to Re^2: Sending UDP Packets to MATLAB
in thread Sending UDP Packets to MATLAB
I am receiving the data as 203040 ... How cna I add a delimiter like a space to this ... so that I can receive the data as 20 30 40 ....#!/usr/bin/perl #udpclient.pl use IO::Socket; use warnings; use Time::HiRes qw (sleep); my ($socket,$data); $socket = IO::Socket::INET->new (PeerAddr => '10.11.254.81', PeerPort => 5005, Type => SOCK_DGRAM, Proto => 'udp') or die "ERROR in + Socket Creation : $!\n"; @tempData = (20,30,40); $socket->send(pack ("(A*)*", @tempData)); $socket->close();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sending UDP Packets to MATLAB
by pryrt (Abbot) on Aug 24, 2016 at 22:09 UTC |