• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Listen to network traffic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Listen to network traffic


  • Subject: Re: Listen to network traffic
  • From: glenn andreas <email@hidden>
  • Date: Wed, 30 May 2007 16:52:38 -0500


On May 30, 2007, at 4:32 PM, Marcus Karlsson wrote:

Hi.

I have an idea I want to ask about.

Let's say we have a network with a couple of computers attached to it. One of the computers is running an application that we want to remotely control from the other computers, but we don't know which computer that we want to control. All we know is that they are on the same network.

My idea is that the application will listen to all data transmitted on the network, maybe only on a specific port. If we want to give the application a command, we will broadcast a packet onto the network with a specific data sequence that the application will recognize. Depending on what message the packet contained, the application will do a specific task.

Do you have any suggestions about how I might do this? Is it possible to use Cocoa and what classes do you think would be in interest?

Sounds like a good place to use Bonjour. Your application you want to control registers itself, and the controlling app just looks for that service and connects to it (at which point you can easily then use Distributed Objects to manage controlling the other application).


See NSNetService and friends.


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! Cardographer | the custom playing card designer


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Listen to network traffic
      • From: Marcus Karlsson <email@hidden>
References: 
 >Listen to network traffic (From: Marcus Karlsson <email@hidden>)

  • Prev by Date: Re: Listen to network traffic
  • Next by Date: Re: Objective-C++ and NSInvocation (or IMP)
  • Previous by thread: Re: Listen to network traffic
  • Next by thread: Re: Listen to network traffic
  • Index(es):
    • Date
    • Thread