iphone - Client server ios Application -
whats best way application phone server , others phones clients. clients requests server , server respond..requests maybe server sends real time audio capturing..whats best way in ios? using udp multicast? or tcp socket per client?
using udp multicast cast messages all devices in network (hence name). not guarantee delivery , not garauntee delivery order (fofi) either. in situations, udp isn't idea.
tcp great alternative, it's easy use, , garuantee things , there many frameworks or c libraries out there can lot.
personally, i'ld recommend using libuv
, attaching uv
runloop nsrunloop
, can use asyncsocket
too, if you'ld rather stick objective-c.
Comments
Post a Comment