Files
swift-torrent/Sources/SwiftTorrent/Alert/Alert.swift
T
Chad Paulson 6c8c581517 Implement SwiftTorrent: pure Swift BitTorrent library
Full BEP-3 peer wire protocol, BEP-5 DHT, BEP-15 UDP trackers,
magnet link support, bencode serialization, rarest-first piece
selection, and async session management using SwiftNIO and
swift-crypto. Includes 64 passing unit tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 04:17:43 -06:00

17 lines
299 B
Swift

import Foundation
/// Base protocol for all alert types.
public protocol Alert: Sendable {
var timestamp: Date { get }
var category: AlertCategory { get }
}
public enum AlertCategory: Sendable {
case status
case error
case peer
case tracker
case storage
case dht
}