Something went wrong. Try again.
FTP for Zig 0.16: a client, a server, and the wire protocol as a layer you can use on its own, all built on std.Io.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// 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());}