Wow, thanks again Travis but, sadly I have to use the server that I'm using and I have no access to change it. I also need to use UDP. But I will save this for something I need to do later. Thanks!
I'm using UDP (because the server only accepts UDP, I didn't write it) to receive some data from the server and it's not getting all the data. I know there's at least 18-19 lines I need to receive but I'm only getting 13-14 of them. I've tried increasing the length and even adding a sleep to see...
Thank you travs!
I did this
my $sock = IO::Socket::INET->new(Proto =>'udp',
PeerHost =>$host,
PeerPort =>$port,
Reuse => 1) or die $@;
$sock->send($packet);
$sock->recv(my $data,6000) or die "failed to recv() !:\n"...
What I'm trying to do is send a string to my UDP server and receive some data back, but more than just once.
my $sock = IO::Socket::INET->new(Proto =>'udp',
PeerHost =>$host,
PeerPort =>$port,
Reuse => 1) or die $@...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.