Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Listen to network traffic




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Listen to network traffic (From: Marcus Karlsson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.