I created an iOS app in objective-c, and this app first browse the local networks. After the app found a bonjour service I would like to read/write data to that computer. I think I should use the CFNetwork framework but which part? What is the simplies way to read/write data from a computer in the same network?
How to send data from iphone to bonjour service?
1.2k Views Asked by szu At
1
There are 1 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in OBJECTIVE-C
- How do I customize NSOutlineView to have border color?
- UIWebView Screen Fitting Issue
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Image and Text locations in UIButton
- setting OpenGL version in objective-C
- Setup code for xibs in iOS. -awakFromNb:
- realm db, get parent link of object
- CFBundleDocumentType is not working in myproject-Info.plist file
- UIPopoverPresentationController not rendering properly
- Using Storyboard Reference
- Pass Data between two view controllers using 'Delegation' : Objective-C
- Unexpected CALayer Vertical Flipping on 3D Rotation 'Bounce'
- Setting View orientation to portrait is ignored
- UITextField append / between dates while enforcing character limit
Related Questions in BONJOUR
- C# Discover devices with Mono.Zeroconf
- Concurrent Android - bonjour discovery possible?
- Using apple mdns service in android
- Getting the HostName of a Remote iOS Device with NSNetService
- Will OSX devices register to a Raspberry Pi running avahi-daemon
- How to terminate a bonjour registered service
- zeroconf implementation on an embedded linux system
- Multipeer connectivity in iOS
- NSNetServiceBrowser browse all service type
- Need more ideas: How to check if iPhone is in Wifi
- Bonjour SDK for Windows 8.1
- socket sendto get the error 22 during udp packets
- Bonjour: Search for a service by name
- Detect iDevices and exchange information
- Bonjour/Cocoa: Is the NSNetServerBrowser still listening if 'moreServicesComing' is NO?
Related Questions in CFNETWORK
- iOS IPV6 testing: Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected"
- How to handle “CFNetwork SSLHandshake failed(-9807)” in iOS
- HttpClient doesn't return if empty post response is
- Default SSLLevel on Mac OS 10.9 onwards when using NSURLConnection
- iOS how to register selector as a stream event callback?
- How to retrieve the ssl server certificate in iOS?
- Differences - CFNetwork / NSURLConnection
- PROPFIND Request In WTClient
- How to correctly handle unavailability of internet connections in iOS?
- Are there more sophisticated alternatives to Apples Reachability class?
- How to correctly use Apples Reachability class to tell if the internet works?
- When exactly *must* an app include the Reachability class to test for network reachability?
- Monitor Connection Status & Handling Drops
- Simple Server/Client with CF Networking cocoa
- How can I build/install/run a server program to communicate with the iPhone?
Related Questions in CFNETWORKING
- Not able to view active servers through wifi and connect with it all the time by using Bonjour and NSNetServiceBrowserDelegate?
- Allocations using AFNetworking request
- What can use instead CFReadStreamCreateForHTTPRequest?
- Mount approval callback on mac OS X
- How to send data from iphone to bonjour service?
- Getting Error when UnArchived NSMutableDictionary o NSData?
- Possible bug in CFNetDiagnosticCopyNetworkStatusPassively? Returning kCFNetDiagnosticConnectionDown over 3G/4G only.
- Not deleting file from ftp using CFURLDestroyResource method in iphone
- Only INADDR_ANY or 0x7f000001 is working how to set any other ip address?
- Updating IP routing table with iOS
- Crash in CFNetwork CFAllocatedReferenceCountedObject::_retainable_hash(void const*)
- Find delay time of socket message at receiver side
- Is there any way to implement client certificate authentication using CFNetwork?
- Register two Java web applications with Spring Registry
- Network traffic from a iOS SDK
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The Bonjour service's main function is to discover other Bonjour enabled device on LAN, it does nothing about read/write the data from a computer. To read/write the data on a computer, you will have to leverage some other network protocols, HTTP is one of them and commonly used.
Let's say you implement some API interface on HTTP, then you can use the Bonjour to locate the device and establish the communication. For example, if the computer's Bonjour name is mypc._tcp.local., then write data could be done with http://mypc._tcp.local./write/data (depends on your API implementation).
Apple documentation about Bonjour, Bonjour Overview