/* * montauk.hpp * MontaukOS transport for the SMB client library * Copyright (c) 2026 Daniel Hammer */ #pragma once #include 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); }