开发者

no route.h on the iPhone SDK

I am trying to build some code that is originally target at OSX/BSD/Linux for the iPhone. It uses struct rt_msghdr from route.h开发者_JAVA百科 but as it turns out this header is not available in the iPhone SDK.

Looks like the function tries to find the available bind addresses as a list of struct addrinfo.

Does anyone have a suggestion how to proceed here?


Copy the header into the project and change the includes to be local, that often works for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜