Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I see no declaration within TFTP module to close session # Net::TFTP.pm, # VERSION = "0.17"; # $Id: TFTP.pm 12 2007-07-18 11:32:42Z What is the proper way to clean up the connection? I have used undef but unsure that is proper. I see close sub defined in Net::TFTP::IO

my $tftp = Net::TFTP->new("$Ip); $tftp->binary; $tftp->get("$getFile", $recvFile); $err = $tftp->error; undef $tftp;

Replies are listed 'Best First'.
Re: Close TFTP session
by Corion (Patriarch) on Oct 01, 2015 at 14:28 UTC

    TFTP doesn't have a connection because it usually runs over UDP.

      Maybe I should have said, how do we clean up the resource? Is that not applicable? We are creating a connection/socket to TFTP server, otherwise it waits till timeout (tftp)

        Have you looked at the Wikipedia page I linked? It outlines how TFTP works. There is no connection or timeout. It's a request/response protocol without a connection.