Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
// Echo Daemon
// - to compile in Swift 3 invoke: swift build
// - to run result: .build/debug/echod
import net
net.createServer { sock in
print("# accepted socket.")
sock.write("Welcome to!\r\n")
sock | sock
.listen(1337) { address in print("echod: running \(address)") }