Files
Cory Benfield d273f906fe Add strict concurrency to NIOUDPEchoServer (#3101)
Motivation:

Another strict concurrency change, another echo handler.

Modifications:

Move to sync operations.

Result:

Another step on strict concurrency.
2025-02-03 12:56:02 +00:00
..

NIOUDPEchoServer

This sample application provides a simple UDP echo server that sends clients back whatever data they send it. Invoke it using one of the following syntaxes:

swift run NIOUDPEchoServer  # Binds the server on ::1, port 9999.
swift run NIOUDPEchoServer 9899  # Binds the server on ::1, port 9899
swift run NIOUDPEchoServer /path/to/unix/socket  # Binds the server using the given UNIX socket
swift run NIOUDPEchoServer 192.168.0.5 9899  # Binds the server on 192.168.0.5:9899