Files
swift-nio/Sources/NIOEchoClient
Moritz Lang 5c2de043b3 Make use of dropFirst(_:) in example code (#794)
Motivation:

While getting into NIO through the examples I stumbled
accross some chained dropFirst() calls, which can be
simplified by using dropFirst(_:) instead.

Modifications:

I did a quick project-wide search of chained dropFirst()
usage and modified every line to use dropFirst(_:) instead.

Result:

This will only effect the readability of the code,
not its functionality.
2019-01-31 14:54:20 +00:00
..

NIOEchoClient

This sample application provides a simple echo client that will send a single line to an echo server and wait for a response. Invoke it using one of the following syntaxes:

swift run NIOEchoClient  # Connects to a server on ::1, port 9999.
swift run NIOEchoClient 9899  # Connects to a server on ::1, port 9899
swift run NIOEchoClient /path/to/unix/socket  # Connects to a server using the given UNIX socket
swift run NIOEchoClient echo.example.com 9899  # Connects to a server on echo.example.com:9899