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

Re(2): MoreSCF & modem ports


  • Subject: Re(2): MoreSCF & modem ports
  • From: Jens Bauer <email@hidden>
  • Date: Tue, 11 Jun 2002 08:45:36 +0200

Hi Duane and Terence,

On Mon, 10 Jun, 2002, Duane Murphy <email@hidden> wrote:

>--- 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;

You might want to fill in some more info here.

>> memset(&ipv4Settings, 0, sizeof(ipv4Settings));

And here. ;)

>> dnsSettings.serverAddressesCount = 1;
>> OTInetStringToHost(kDNSServer1, &DNSAddr);
>> dnsSettings.serverAddresses = &DNSAddr;
>> dnsSettings.searchDomainsCount = 0;
>> dnsSettings.searchDomains = nil;

Looks OK to me.


>> modemSettings.connectionScript = CFSTR("");

You want to give this one a modemscript name.
Try the internal modem for a test. -You should ask the user though.

>> modemSettings.dataCompressionErrorCorrection = true;
>> modemSettings.speaker = false;
>> modemSettings.pulseDial = false;
>> modemSettings.waitForDialTone = true;

You might want to set newSetID to nil

>> err = MoreSCOpen(false, false);

You don't want to use MoreSCOpen yourself!

>> if (err == noErr)

You don't want this if either.

>> {
>> //then configure the PocketMac, man!!!!
>> err = MoreSCMakeNewDialupSet(bsdName,

bsdName can be nil.

>> userVisibleName,
>> &modemSettings,
>> &pppSettings,
>> nil, //&ipv4Settings,

You most likely don't want to pass nil here, although it would probably be OK.

>> &dnsSettings,
>> &newSetID);

>> err = MoreSCToOSStatus(err);
>> }
>> MoreSCClose(&err, false);

You don't want to use MoreSCClose, and if you really did, you would only
want to do it, if Open was OK. ;)

If none of these things makes any changes, let me know, and I'll
investigate it further. =)


Love,
Jens

--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
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: Re(2): MoreSCF & modem ports
      • From: Terence Goggin <email@hidden>
References: 
 >Re: MoreSCF & modem ports (From: Duane Murphy <email@hidden>)

  • Prev by Date: Re: MoreSCF & modem ports
  • Next by Date: Re: Re(2): MoreSCF & modem ports
  • Previous by thread: Re: MoreSCF & modem ports
  • Next by thread: Re: Re(2): MoreSCF & modem ports
  • Index(es):
    • Date
    • Thread