Skip to content

Commit

Permalink
Merge pull request #66 from m-tmatma/feature/fix-client-example
Browse files Browse the repository at this point in the history
add missing tftp in an example.
  • Loading branch information
pin authored Aug 9, 2021
2 parents b0a0cac + 5c7c756 commit 0161c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ c, err := tftp.NewClient("172.16.4.21:69")
wt, err := c.Receive("foobar.txt", "octet")
file, err := os.Create(path)
// Optionally obtain transfer size before actual data.
if n, ok := wt.(IncomingTransfer).Size(); ok {
if n, ok := wt.(tftp.IncomingTransfer).Size(); ok {
fmt.Printf("Transfer size: %d\n", n)
}
n, err := wt.WriteTo(file)
Expand Down

0 comments on commit 0161c5d

Please sign in to comment.