ADC Home > Reference Library > Technical Q&As > Legacy Documents > Carbon >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
Q: I am interested in network programming on the Macintosh, can you give me any hints?
A: There are a variety of network programming strategies and API's available on the Mac OS. The choice of API will depend upon your background, experience, and goals.
For developers with a background in UNIX, a need for POSIX compliance, or a need to deploy an application across MacOS and UNIX systems, OpenTransport is a logical choice.
OpenTransport is also the preferred choice for a Mac-only application. It provides the highest performance of all network methods. The older MacTCP API's interface is being phased out, and Apple encourages all developers to move to the Open Transport XTI API.
The OpenTransport API's do not implement the higher layer internet protocols such as HTTP, FTP, gopher, etc. OpenTransport is, however, a building block with which these protocols are typically implemented.
Although Apple does not provide one yet, there are a few internet access libraries being developed by various third parties.
For the CodeWarrior environment, there is a certain amount of network access available in the Powerplant framework.
Finally, for developers with a background in Microsoft Windows, or a need to implement a cross-platform application, WinSock compatibility services are provided through third-party software available from NetManage (408 973-7171).
A good place to start is to investigate the Open Transport web pages.