1
0
mirror of https://github.com/deavmi/libtun.git synced 2024-07-15 03:00:18 +02:00

Renamed TUNAdapter -> Adapter

This commit is contained in:
Tristan B. Velloza Kildaire 2022-11-28 18:39:50 +02:00
parent a234f52908
commit 76991d7082
3 changed files with 4 additions and 4 deletions

View File

@ -13,9 +13,9 @@ First add it to your dub-based project via:
dub add libtun
```
### `TUNAdapter`
### `Adapter`
The `TUNAdapter` class provides you with all you need to get started. One can construct a new adapter as follows:
The `Adapter` class provides you with all you need to get started. One can construct a new adapter as follows:
```d
import libtun.adapter;

View File

@ -16,7 +16,7 @@ import libtun.tunctl;
// extern (C) int tunWrite(int fd, char* data, int length);
// extern (C) int tunRead(int fd, char* data, int amount);
public class TUNAdapter
public class Adapter
{
/* Tunnel device descriptor */
private int tunFD;

View File

@ -8,7 +8,7 @@ import core.thread;
void main()
{
writeln("Edit source/app.d to start your project.");
TUNAdapter adapter = new TUNAdapter("testInterface0");
Adapter adapter = new Adapter("testInterface0");
while(true)
{