A simple TCP client written in Swift