swift-nio/Sources/NIOEchoClient
Sebastian Vogt a4ad5eb54d
Allow NIOEchoClient to receive fragmented echo responses. (#2041)
* Add buffering for reading data

* Simplify channelRead in NIOEchoClient

* Remove spacing
2022-02-07 01:35:16 -08:00
..
README.md Add READMEs for the various sample applications (#117) 2018-03-09 09:06:06 -08:00
main.swift Allow NIOEchoClient to receive fragmented echo responses. (#2041) 2022-02-07 01:35:16 -08:00

README.md

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