How do I use sockets in Swift?

Hi.

I'm developing a remote control app that connects to a TV over wifi.

I need to implement Sockets so that I can send commands to the TV using an IP address hair and port over wifi.

What is the best way of doing this?

Thanks.

Answered by Claude31 in 683442022

Did you search for "Swift sockets" ?

There are a lot of references and tutorials:

https://stackoverflow.com/questions/28466665/sockets-with-swift

and notably this one:

h t t p s : / /stackoverflow.com/questions/28466665/sockets-with-swift

Accepted Answer

Did you search for "Swift sockets" ?

There are a lot of references and tutorials:

https://stackoverflow.com/questions/28466665/sockets-with-swift

and notably this one:

h t t p s : / /stackoverflow.com/questions/28466665/sockets-with-swift

How do I use sockets in Swift?
 
 
Q