mirror of
https://github.com/apple/swift-system
synced 2026-11-23 04:34:26 +00:00
Add socket APIs to swift-system (#281) Port the long-standing sockets implementation from #30 to the new staging branch. This adds comprehensive low-level Swift APIs for POSIX socket programming. Original Co-authored-by: Karoy Lorentey <karoly@apple.com>
26 lines
662 B
Swift
26 lines
662 B
Swift
/*
|
|
This source file is part of the Swift System open source project
|
|
|
|
Copyright (c) 2021 - 2025 Apple Inc. and the Swift System project authors
|
|
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
|
See https://swift.org/LICENSE.txt for license information
|
|
*/
|
|
|
|
import ArgumentParser
|
|
|
|
struct SystemSamples: ParsableCommand {
|
|
static var configuration = CommandConfiguration(
|
|
commandName: "system-samples",
|
|
abstract: "A collection of little programs exercising some System features.",
|
|
subcommands: [
|
|
Resolve.self,
|
|
ReverseResolve.self,
|
|
Connect.self,
|
|
Listen.self,
|
|
])
|
|
}
|
|
|
|
disableBuffering()
|
|
SystemSamples.main()
|