Files
swift-nio/Sources/NIOTCPEchoServer
Franz Busch c9756e1083 Adopt swift-format (#2794)
* Apply formatting

* Apply no block comments rule

* Apply OmitExplicitReturns

* Apple OnlyOneTrailingClosureArgument

* Apply NoAssignmentInExpressions

* Fix up DontRepeatTypeInStaticProperties lint errors

* Apply `OrderedImports`

* Apply `ReplaceForEachWithForLoop`

* format file

* Enable the formatting pipeline

* Adopt `AmbiguousTrailingClosureOverload`

* Fix license header

* Fix format check

* Fix `EndOfLineComment`

* Fix CI

* Adapt CI script to check if changes when running formatting

* Separate lint and format into to steps

* Fix format

* Adopt `UseEarlyExits`

* Revert "Adopt `UseEarlyExits`"

This reverts commit d1ac5bbe12.
2024-07-19 11:48:17 +02:00
..
2023-07-31 01:53:41 -07:00
2024-07-19 11:48:17 +02:00

NIOTCPEchoServer

This sample application provides a simple TCP server that sends clients back whatever they send it.

To run this server execute the following from the root of the repository:

swift run NIOTCPEchoServer

You can then use the NIOTCPClient to send requests to the server.