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

Re: Re(2): MoreSCF & modem ports


  • Subject: Re: Re(2): MoreSCF & modem ports
  • From: Terence Goggin <email@hidden>
  • Date: Tue, 11 Jun 2002 00:04:19 -0700

Hi Jens,

Thanks for your comments... please see my notes inline :)

-------------

memset(&pppSettings, 0, sizeof(pppSettings));
pppSettings.active = true;

You might want to fill in some more info here.

Such as? I'm really only interested in configuring the DNS
settings so that the port has at least one DNS server available.


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.

Can you suggest a default name I could use? We won't be
using the script, so I don't really care what it's set
to.


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

You might want to set newSetID to nil

When I did that, it failed with the message:
MoreAssertQ failure: (err == noErr) == ( (newSetID == nil) || (*newSetID != 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.

Yes, but I don't need it to be. I do fill this in; I just didn't
include that part of the code. :)

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

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

Again, all I'm interested in is the DNS stuff and Quinn's comments
in the source seem to suggest I can get away with even less than
I'm doing here.

BTW, each time I run this, I get a newSetID of 2, which I assume
would indicate success.

Thanks,

Terence

&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(4): MoreSCF & modem ports
      • From: Jens Bauer <email@hidden>
References: 
 >Re(2): MoreSCF & modem ports (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re(2): MoreSCF & modem ports
  • Next by Date: Crash in Carbon App quitting while AppleTalking
  • Previous by thread: Re(2): MoreSCF & modem ports
  • Next by thread: Re(4): MoreSCF & modem ports
  • Index(es):
    • Date
    • Thread