What's the recommended way to write a TCP client application?

Further update: I found technical note 3151 - Choosing the right networking API, and while it's helpful, the general recommendation for cross-platform code there seems to be "use Swift-NIO". Digging around in the Swift-NIO category I found the Sent TCP command and await response thread, which is right up my alley, but doesn't seem to have a great answer either. Digging further on that though.