Skip to content

Instantly share code, notes, and snippets.

View hotpaw2's full-sized avatar

Ronald Nicholson hotpaw2

View GitHub Profile
@hotpaw2
hotpaw2 / udp_receive.swift
Last active February 24, 2018 18:38 — forked from NeoTeo/UDPSendReceive.swift
A minimal implementation of a Posix UDP server in Swift.
//
// receive packets via UPD in Swift
// Original: https://gist.github.com/NeoTeo/b6195efb779d925fd7b8
// server only converted to Swift 4 2018-02-24 by [email protected]
//
// swiftc udp_receive.swift -o udp_receive
//
import Foundation