Re: Locations and sets and entities, oh my!
Re: Locations and sets and entities, oh my!
- Subject: Re: Locations and sets and entities, oh my!
- From: Quinn <email@hidden>
- Date: Tue, 11 Jun 2002 21:21:32 +0100
To start with, here's a mapping between SCF terms and UI terms.
o set <-> location
o service <-> network port within a location
o entity <-> protocol running over a port within a location
At 8:27 -0700 11/6/02, Juan Leon wrote:
There has got to be an easier way to set this up... right?
This *is* the easy way.
I noticed that MoreSCMakeNewDialupSet calls SetupEntity once it has
finished going through all the setups and checks. Is this the only
call that I would need (of course setting up bsdport Ethernet or
Aiport, and sending it a more complete Digest pointer)? Could I get
away with modifying this wonderful ISP API for all three of my
needed locations.
Yes. That is, in fact, the intended use. Stuff you'd need to modify includes:
o The call to CopyDefaultModemPortBSDName, which gets the default
modem port. You probably want the default Ethernet port for your
Ethernet setup.
o The various calls to SetupEntity. For Ethernet, you don't want to
set up the kSCEntNetPPP and kSCEntNetModem entities, but you do want
to set up the kSCEntNetEthernet (or kSCEntNetAirPort) entity.
Beyond that it's a question of passing in the right digest parameters
so that each entity is set up appropriately.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.