feat: add SMB networking support
This commit is contained in:
1 parent
6665750528
commit
2af2e90606
55 files changed
+7456
-158
No files matched your search
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* montauk.hpp
|
||||
* MontaukOS transport for the SMB client library
|
||||
* Copyright (c) 2026 Daniel Hammer
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <smb/smb.hpp>
|
||||
|
||||
namespace smb {
|
||||
|
||||
// A TCP connection to an SMB server, usable as the library's Io.
|
||||
struct MontaukLink {
|
||||
int fd;
|
||||
};
|
||||
|
||||
// Resolve `host` (name or dotted address) and connect to `port` (0 = 445).
|
||||
// Returns OK, ERR_NOT_FOUND if the name does not resolve, or ERR_IO.
|
||||
int link_open(MontaukLink* link, const char* host, int port);
|
||||
void link_close(MontaukLink* link);
|
||||
Io link_io(MontaukLink* link);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user