ADC Home > Reference Library > Technical Q&As > Carbon > Networking >

Open Transport Libraries


Q: I want to program with OpenTransport. What libraries should I link with?

A: Here are descriptions of each of the libraries that come with OT, and why you might need to link them.

Linking OT for PPC Code


Important:
If your software supports only PowerPC, you should consider using the new, unified Open Transport client library. A pre-release version of the library is available in the DTS sample code OTClassicContext. See DTS Technote 1173 Understanding Open Transport Asset Tracking for more details.

To give you a quick start, the basic libraries to link with your application are:

OpenTransportLib
OpenTransportAppPPC.o

If you need AppleTalk services, also link with:

OpenTptAppleTalkLib
OpenTptATalkPPC.o

If you need Internet services, also link with:

OpenTptInternetLib
OpenTptInetPPC.o

The two following libraries may provide a smaller footprint if your application only deals with ports. Once you've got it working, try replacing OpenTransportLib and OpenTransportAppPPC.o with these and see if your application still links:

OpenTransportUtilLib
OpenTptUtilsAppPPC.o

The following libraries replace the OpenTransportAppPPC.o and OpenTptUtilsAppPPC.o if you are writing a stand-alone code resource, CFM fragment, or ASLM shared library:

OpenTransportExtnPPC.o
OpenTptUtilsExtnPPC.o


Note:
If your code is meant to run on machines with and without OT (i.e., you revert to Classic AppleTalk or MacTCP) you should make sure to weak-link with the the libraries ending in "Lib" otherwise the system will refuse to launch your application when OT is not installed.


Linking OT for 68K Code

To give you a quick start, the basic libraries to link with your application are:

OpenTransport.o
OpenTransportApp.o

If you need AppleTalk services, also link with:

OpenTptATalk.o

If you need Internet services, also link with:

OpenTptInet.o

The following library may provide a smaller footprint if your application only deals with ports. Once you've got it working, try replacing the first library with this and see if it still links:

OpenTptUtils.o

The following library replaces the OpenTransportApp.o if you are writing a stand-alone code resource or ASLM shared library:

OpenTransportExtn.o

In addition, the following libraries are identical to their similarly named counterparts except that they are suitable for linking with MPW model near clients:

OpenTransport.n.o
OpenTransportApp.n.o
OpenTptATalk.n.o
OpenTptInet.n.o
OpenTptUtils.n.o
OpenTransportExtn.n.o

[Nov 03 1995]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.