Initial commit.
The library is able to support simple TCP servers in the current state. The API is still mostly compatible with mainline vibe.d, but the driver systen has been replaced by the eventcore library and sockets/files/timers/... are now structs with automatic reference counting instead of GC collected classes. The stream interfaces have been removed for now.
This commit is contained in:
commit
7e2d1dd038
22 changed files with 9977 additions and 0 deletions
25
source/vibe/core/path.d
Normal file
25
source/vibe/core/path.d
Normal file
|
@ -0,0 +1,25 @@
|
|||
module vibe.core.path;
|
||||
|
||||
struct Path {
|
||||
nothrow: @safe:
|
||||
private string m_path;
|
||||
|
||||
this(string p)
|
||||
{
|
||||
m_path = p;
|
||||
}
|
||||
|
||||
string toString() const { return m_path; }
|
||||
|
||||
string toNativeString() const { return m_path; }
|
||||
}
|
||||
|
||||
struct PathEntry {
|
||||
nothrow: @safe:
|
||||
private string m_name;
|
||||
|
||||
this(string name)
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue