• 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: [FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport


  • Subject: Re: [FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport
  • From: Larry Gerndt <email@hidden>
  • Date: Sat, 08 Nov 2003 23:51:49 -0800

> However, there are some OpenTransport calls in the code which I need to
> replace with corresponding socket calls:
>
> // First get my own IP address
> InetInterfaceInfo OTInetInfo;
>
> if (OTInetGetInterfaceInfo(&OTInetInfo,kDefaultInetInterface)==noErr)
> host.sin_addr.s_addr = OTInetInfo.fAddress;
> else
> return -1;
>
> What would be the corresponding socket call?

I don't know what the socket equivalent is, but if it helps, I just continue
to use that OT function, since it gives the right answer (and using OT
headers don't conflict with BSD headers).
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
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.

  • Prev by Date: mounting AppleShare volumes?
  • Next by Date: Re: How to POST using CFSocket
  • Previous by thread: Re: mounting AppleShare volumes?
  • Next by thread: Re: UDP & tftpd strangeness
  • Index(es):
    • Date
    • Thread