UDP echo server
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
EchoServer.xcodeproj
.gitignore
Address.h
Address.m
DatagramSocket.h
DatagramSocket.m
EchoServer.h
EchoServer.m
IPv4Address.h
IPv4Address.m
IPv4SocketAddress.h
IPv4SocketAddress.m
IPv6Address.h
IPv6Address.m
IPv6SocketAddress.h
IPv6SocketAddress.m
README.md
SocketAddress.h
SocketAddress.m
main.m

README.md

A UDP echo server. I wrote this to learn about CFNetwork, UDP, and socket programming in general. I also couldn't believe things had to be as complicated as Apple's UDPEcho sample.

Run it without arguments to bind to a wildcard address and port 3000:

EchoServer

Or give it an address (IPv4 or IPv6) and port:

EchoServer 127.0.0.1 3000

Then try it out with netcat:

echo you look marvelous | nc -u 127.0.0.1 3000