• 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: Marcus Karlsson <email@hidden>
  • Date: Thu, 31 May 2007 08:18:01 +0200


On 30 maj 2007, at 23.52, glenn andreas wrote:


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.

Thank you. That would probably be easier and less painful, but I don't know if the other computers will support Bonjour, or even be ordinary personal computers at all. If I'm correct they would also need to use Bonjour, right?


Marcus



_______________________________________________

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


References: 
 >Listen to network traffic (From: Marcus Karlsson <email@hidden>)
 >Re: Listen to network traffic (From: glenn andreas <email@hidden>)

  • Prev by Date: Updating Image metadata
  • Next by Date: Re: Listen to network traffic
  • Previous by thread: Re: Listen to network traffic
  • Next by thread: NSMachPort vs. NSMessagePort
  • Index(es):
    • Date
    • Thread