home *** CD-ROM | disk | FTP | other *** search
- /*
- GetMyIPAddr.c
-
- Code to implement the GetMyIPAddr function.
-
- 01/31/94 dn - Created.
- 11/28/94 mc - Converted to CodeWarrior
- 12/04/95 dn - Prep'd for Apprentice 4
- */
-
- #include <MyTCPIncludes.h>
-
- /*
- GetMyIPAddr
-
- Fetch the IP address for the current mac.
- */
- OSErr GetMyIPAddr(GetAddrParamBlock* pb,Boolean async){
-
- if (pb==(GetAddrParamBlock*)0)
- return getipNilPB;
-
- if (pb->ioCRefNum==0)
- return getipNilRefNum;
-
- pb->csCode=ipctlGetAddr;
-
- return SyncAsync((ParmBlkPtr)pb,async);
- }