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 rhn@nicholson.com
//
// swiftc udp_receive.swift -o udp_receive
//
import Foundation