Or to point code examples, too, to the point also OK! Now I do not know where to start ah!
Reply:
You can use NSStream or CFNetwork. You can refer to: http://www.devx.com/wireless/Article/43551/1954
- Trinidad Widow
Reply:
That is what BSD Socket!
Reply:
socket This whole thing was initially out of the BSC.
Let Many operating systems are basically a network socket interfaces are by standard BSD socket to do the.
Reply:
BSD socket This whole thing is out of the initial set of API, popular network programming interface called the de facto standard.
Let Many operating systems are basically a network socket interfaces are by standard BSD socket api's to do.
- Trinidad Widow
Reply:
BSD socket This whole thing is out of the initial set of API, popular network programming after becoming the de facto standard interface.
Let Many operating systems are basically a network socket interfaces are by standard BSD socket api's to do.
- Trinidad Widow
Reply:
That means NSStream or CFNetwork are encapsulated inside the BSD Socket?
Reply:
Well, to cite two figures you look at their hierarchy.
CFNetwork:

NSStream:

- Trinidad Widow
Reply:
to yanghehong:
There is a question I like to ask, why me to connect to the server using CFStreamCreatePairWithSocketToHost, whether it exists or not IP addresses, Stream has returned, which is not empty, which is why?
If so, how do I know whether the connection to the server after a successful connection with CFStreamCreatePairWithSocketToHost! !
Ask! ! !
Reply:
Return, just create a stream. But did not open. Only time will stream open a connection, at that time before we know whether the connection is successfully established.
Look at the development site online documentation wrote:
http://developer.apple.com/ library / ios / # documentation / CoreFoundation / Reference / CFStreamConstants / Reference / reference.html
CFStreamCreatePairWithSocketToHost
Discussion
The streams do not open a connection to the specified host until one of the streams is opened.
- Trinidad Widow
No comments:
Post a Comment