A
aku
Hi, got a UDP msg with format STXdataETX (without a LF)
I use this:
use IO::Socket;
my $PORT='4444';
$sock = IO::Socket::INET -> new(LocalPort => $PORT, Proto => 'udp') or
die "socket: $@";
print "Server Mode\n";
while ($sock->recv($nachricht,1024))
{
print "$nachricht";
};
with my incoming format STXdataETX (without a LF) it do not work; if I
add a LF it works
is there a chance to change the delimiter in the recv function from LF
to ETX or are there other solutions for my program?
Thanks a lot
aku
I use this:
use IO::Socket;
my $PORT='4444';
$sock = IO::Socket::INET -> new(LocalPort => $PORT, Proto => 'udp') or
die "socket: $@";
print "Server Mode\n";
while ($sock->recv($nachricht,1024))
{
print "$nachricht";
};
with my incoming format STXdataETX (without a LF) it do not work; if I
add a LF it works
is there a chance to change the delimiter in the recv function from LF
to ETX or are there other solutions for my program?
Thanks a lot
aku