如何在IOS和Windows之间建立Tcp连接?

时间:2020-11-27 18:54:34

I'm trying to implement tcp connection between my Ipod as client and PC as server. I use QTcpServer to provide a server. What is the best way to realize the connection?

我正在尝试在我的Ipod作为客户端和PC作为服务器之间实现tcp连接。我使用QTcpServer来提供服务器。实现连接的最佳方法是什么?

1 个解决方案

#1


1  

Using CFSocket. An awesome cocoa class has been written to wrap CFSocket for you asynchronously! It supports both UDP and TCP, I am using it myself in an IM application.

使用CFSocket。已经编写了一个非常棒的cocoa类来异步包装CFSocket!它支持UDP和TCP,我自己在IM应用程序中使用它。

AsyncSocket on iphone

iphone上的AsyncSocket

#1


1  

Using CFSocket. An awesome cocoa class has been written to wrap CFSocket for you asynchronously! It supports both UDP and TCP, I am using it myself in an IM application.

使用CFSocket。已经编写了一个非常棒的cocoa类来异步包装CFSocket!它支持UDP和TCP,我自己在IM应用程序中使用它。

AsyncSocket on iphone

iphone上的AsyncSocket