// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie // SPDX-License-Identifier: MIT //! The server side: an accept loop, a session per connection, and the two //! interfaces that decide what a session can see and who is allowed to see it. //! //! The pieces are separable on purpose. `Server` is a convenience — a program //! that accepts connections some other way can drive `Session` directly, over //! any reader and writer. `Session` never touches a file: `Filesystem` does, //! and `DirFilesystem` is the implementation of it that serves a real //! directory. `Auth` decides who may log in and what they may then do. const std = @import("std"); /// The accept loop. pub const Server = @import("server/Server.zig"); /// One control connection's state machine. pub const Session = @import("server/Session.zig"); /// What a server serves. pub const Filesystem = @import("server/Filesystem.zig"); /// A `Filesystem` over a real directory. pub const DirFilesystem = @import("server/DirFilesystem.zig"); /// Who may log in, and what they may do. pub const Auth = @import("server/Auth.zig"); test { std.testing.refAllDecls(@This()); }