开发者

Find specific server in iPhone

开发者 https://www.devze.com 2023-03-28 15:56 出处:网络
Hi i am developing iPad client server based application. It is required in application that when application starts it searches for specific server. If server found then connect with it and start cons

Hi i am developing iPad client server based application. It is required in application that when application starts it searches for specific server. If server found then connect with it and start consuming webservices on that server.

The point is user should not ent开发者_如何学Cer IP address of server. Application search servers and connect with specific server. Is there anyway to find server.


Apple has a technology called Bonjour which is designed for this kind of thing. http://www.apple.com/support/bonjour/ http://my.safaribooksonline.com/book/programming/iphone/9780470918029/bonjour-programming/browsing_for_services

If you want a simpler solution, you could just use a DNS entry with a CNAME or A record pointing to the server.

0

精彩评论

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