Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Close TFTP session

by Anonymous Monk
on Oct 01, 2015 at 14:15 UTC ( [id://1143553]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1143553]
Approved by stevieb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found