• 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: MoreSCF & modem ports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MoreSCF & modem ports


  • Subject: Re: MoreSCF & modem ports
  • From: Duane Murphy <email@hidden>
  • Date: Mon, 10 Jun 2002 22:55:32 -0700

--- At Mon, 10 Jun 2002 18:25:34 -0700, Terence Goggin wrote:

>Hi again,
>
>Semi-answering my own question, I did find the MoreSCMakeNewDialupSet()
>function.
>
>I believe I'm filling out everything correctly, but when I view
>the entry in the Network prefs panel, none of my settings appear
>there.
>
>When I step through the code, I can even see it find the empty
>port entry that's already there and configure those settings. Yet,
>despite apparent success, nothing seems to stick. :(
>
>Any thoughts?
>
>I've posted the relevant portions of the code below...

Terence,
I have moved your message to Mac Network Programming. This mailing list
is more appropriate for you question.

Are you running your tool as root? You have to be root to make these
changes. I assume that if you check all your return codes, one would
return a no privlege error.

(I dont use MoreSCF but I did use it to better understand how to build
our own classes.)

...Duane

>-------------
>
> memset(&pppSettings, 0, sizeof(pppSettings));
> pppSettings.active = true;
> memset(&ipv4Settings, 0, sizeof(ipv4Settings));
>
> dnsSettings.serverAddressesCount = 1;
> OTInetStringToHost(kDNSServer1, &DNSAddr);
> dnsSettings.serverAddresses = &DNSAddr;
> dnsSettings.searchDomainsCount = 0;
> dnsSettings.searchDomains = nil;
>
> modemSettings.connectionScript = CFSTR("");
> modemSettings.dataCompressionErrorCorrection = true;
> modemSettings.speaker = false;
> modemSettings.pulseDial = false;
> modemSettings.waitForDialTone = true;
>
> err = MoreSCOpen(false, false);
> if (err == noErr)
> {
> //then configure the PocketMac, man!!!!
> err = MoreSCMakeNewDialupSet(bsdName,
> userVisibleName,
> &modemSettings,
> &pppSettings,
> nil, //&ipv4Settings,
> &dnsSettings,
> &newSetID);
> err = MoreSCToOSStatus(err);
> }
> MoreSCClose(&err, false);
>
>-------------
>
>On Monday, June 10, 2002, at 04:05 PM, Terence Goggin wrote:
>
>> Hi all,
>>
>> I'm studying the MoreSCF sample, and I was wondering if anyone
>> had experience using it to create new Port entries and then
>> configure the TCP Settings for that new port?
>>
>> There's an awful lot to digest in that sample, and a few pointers
>> would be very helpful.


...Duane Murphy
Efficient Networks, Inc.
<http://www.efficient.com/>
_______________________________________________
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.

  • Follow-Ups:
    • Re(2): MoreSCF & modem ports
      • From: Jens Bauer <email@hidden>
  • Prev by Date: screwed by IP filtering?
  • Next by Date: Re(2): MoreSCF & modem ports
  • Previous by thread: Re: screwed by IP filtering?
  • Next by thread: Re(2): MoreSCF & modem ports
  • Index(es):
    • Date
    • Thread