SwiftSocket
SwiftSocket copied to clipboard
The easy way to use sockets on Apple platforms
this is my connection informantions and this is my code when the button click i try this let client = TCPClient(address: "192.168.1.1", port: 5000) switch client.connect(timeout: 1) { case .success...
When I try to receive data from UDP socket and no data exist in port, the program wait until it read data. But what do if I don't know whether...
func connectSocket(){ let client = TCPClient(address: "192.168.240.1", port: 40200) switch client.connect(timeout: 200) { case .success: switch client.send(string: "GET / HTTP/1.0\n\n" ) { case .success: guard let data = client.read(1024*10) else...
I really like the lib and works really well out of the box, but I can not use unless it has SSL support.
Hi, Is there is any possibility UDP can be used to implement Radius protocol. I am asking this query here because I really found this library help when I was...
Hi, I need my client to listen to incoming messages from the server. This is the code I've written: `...` `// Connection successful 🎉` ` case .success:` ` print("--> Connected:...
Is there a way to install it manually ?
Can anyone spot any obvious errors in my code: ``` let udpClient = UDPClient(address: "127.0.0.1", port: 12033) switch udpClient.send(string: "Hello") { case .success: print("Client sent message to server.") case .failure(let...
I used your amazing library in my thesis project and I wanna cite you in my bibliography. What do I write in "authors" field?
Hello, How can I write some test code to listen to **UDPServer** incoming messages asynchronously? Loop pseudocode: - state: waiting for message from a given port and address - state:...