Skip to content

esamattis/node-tftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streaming TFTP Server for node.js

http://tools.ietf.org/html/rfc1350

Experiment with the new Streams API in node.js 0.10.

var fs = require("fs");
var tftp = require("tftp");

tftp.createServer(function(req, res) {

  var filePath = "/var/lib/tftpboot/" + req.path;
  fs.createReadStream(filePath).pipe(res);

}).bind(1234);

Test with tftp-hpa:

$ tftp -m octet localhost 1234 -c get pic.jpg

About

Streaming TFTP Server for node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published