I want to develop UDP client and send data in Swift.
I have reference the following link:
Swift: Receive UDP with GCDAsyncUdpSocket
Retrieving a stri
for me, I used this, and its usage:
broadcastConnection = UDPBroadcastConnection(port: 35602) { [unowned self] (response: (ipAddress: String, port: Int, response: [UInt8])) -> Void in print("Received from \(response.ipAddress):\(response.port):\n\n\(response.response)") }