lazebird.rabbit.tftp 3.0.0

an stupid tftp server

Install-Package lazebird.rabbit.tftp -Version 3.0.0
dotnet add package lazebird.rabbit.tftp --version 3.0.0
<PackageReference Include="lazebird.rabbit.tftp" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add lazebird.rabbit.tftp --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

rtftpd

Description

Target

API

  1. rtftpd(Func<int, string, int> log)

    • Constructor
    • Log: log output interface; the first parameter is the output position, 0 means automatic position, the second parameter is the string to be output, and the return value is the output position; the interface is initially used for peer progress update of ListBox.
  2. public void set_cwd(string path)

    • set current work directory
    • Path: folder path
  3. public void start(int port, Hashtable opts)

    • Start the server
    • port: udp port, recommend 69
    • opts:
  • timeout: Receive timeout, default 200 ms
             - maxretry: number of message retransmissions, default 10
             - blksize: block size, default 512 bytes; usually initiated by the client
             - qsize: file read and write queue size, large queue means high memory usage, and concurrency guarantee is also better, default 2000, usually no need to modify
             - qtout: file read and write queue timeout, large timeout means high fault tolerance, default 1000ms, usually no need to modify
             - override: The file overrides the write identifier, which is mainly valid when the client puts the request. When it is true, the file put by the client and the local conflict are allowed to be overwritten. Otherwise, the prompt file already exists.
             - fslog: The file system prints the log identifier. When it is true, it will additionally print the file read and write information for file system debugging.
  1. public void stop()
    • Stop the server while emptying the listening folder

Sample

```
rtftpd rtftpd = new rtftpd(rtftpd_log_func);
rtftpd.set_cwd(t.Text);
int rtftpd_log_func(int line, string msg)
{
    return rtftpdlog.write(line, msg);
}
tftpd.start(69, ropt.parse_opts(text_tftpdopt.Text));
```

rtftpd

Description

Target

API

  1. rtftpd(Func<int, string, int> log)

    • Constructor
    • Log: log output interface; the first parameter is the output position, 0 means automatic position, the second parameter is the string to be output, and the return value is the output position; the interface is initially used for peer progress update of ListBox.
  2. public void set_cwd(string path)

    • set current work directory
    • Path: folder path
  3. public void start(int port, Hashtable opts)

    • Start the server
    • port: udp port, recommend 69
    • opts:
  • timeout: Receive timeout, default 200 ms
             - maxretry: number of message retransmissions, default 10
             - blksize: block size, default 512 bytes; usually initiated by the client
             - qsize: file read and write queue size, large queue means high memory usage, and concurrency guarantee is also better, default 2000, usually no need to modify
             - qtout: file read and write queue timeout, large timeout means high fault tolerance, default 1000ms, usually no need to modify
             - override: The file overrides the write identifier, which is mainly valid when the client puts the request. When it is true, the file put by the client and the local conflict are allowed to be overwritten. Otherwise, the prompt file already exists.
             - fslog: The file system prints the log identifier. When it is true, it will additionally print the file read and write information for file system debugging.
  1. public void stop()
    • Stop the server while emptying the listening folder

Sample

```
rtftpd rtftpd = new rtftpd(rtftpd_log_func);
rtftpd.set_cwd(t.Text);
int rtftpd_log_func(int line, string msg)
{
    return rtftpdlog.write(line, msg);
}
tftpd.start(69, ropt.parse_opts(text_tftpdopt.Text));
```

Release Notes

support tftp add dir, del dir

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.0 58 6/27/2019
2.1.1 175 9/11/2018
2.1.0 166 8/15/2018
2.0.9 161 7/31/2018
2.0.8 219 7/27/2018
2.0.7 155 7/27/2018
2.0.6 208 7/27/2018
2.0.5 211 7/26/2018
2.0.4 176 7/24/2018
2.0.3 160 7/23/2018
2.0.2 215 7/3/2018
2.0.1 205 7/3/2018
2.0.0 201 7/2/2018
1.0.0 210 6/28/2018