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.
精彩评论