diff --git a/README.md b/README.md index 3e6bcc1..2d627ce 100644 --- a/README.md +++ b/README.md @@ -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; diff --git a/source/libtun/adapter.d b/source/libtun/adapter.d index d0e04a4..4eeb682 100644 --- a/source/libtun/adapter.d +++ b/source/libtun/adapter.d @@ -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; diff --git a/source/libtun/testing/app.d b/source/libtun/testing/app.d index db05122..e394ddf 100644 --- a/source/libtun/testing/app.d +++ b/source/libtun/testing/app.d @@ -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) {