This manual describes the programmatic interfaces to transport services in the Solaris operating system.
In this guide, the terms SunOS and Solaris are used interchangeably because the interfaces described in this manual are common to both. Solaris 2.6, SunSoft's distributed computing operating environment, is a superset of SunOS. It consists of SunOS release 5.5 with ONC+TM, OpenWindowsTM, ToolTalkTM, DeskSetTM, OPEN LOOK®, and other utilities. This release of Solaris is fully compatible with System V, Release 4 (SVR4) of UNIX® and conforms to the third edition of the System V Interface Description (SVID). It supports all System V network services.
The guide assists you in developing a networked, distributed application in the Solaris operating system.
Use of this guide assumes basic competence in programming, a working familiarity with the C programming language, and a working familiarity with the UNIX operating system. Previous experience in network programming is helpful, but is not required to use this manual.
Chapter 1, Introduction to Network Programming Interfaces gives a high-level introduction to networking concepts and the topics covered in this book.
Chapter 2, Programming With Sockets describes the socket interface at the transport layer.
Chapter 3, Programming with XTI and TLI describes the X/Open Transport Interface (XTI) and UNIX System V Transport Layer Interface (TLI).
Chapter 4, Transport Selection and Name-to-Address Mapping describes the network selection mechanisms used by applications in selecting a network transport and its configuration.
The SunDocsSM program provides more than 250 manuals from Sun Microsystems, Inc. If you live in the United States, Canada, Europe, or Japan, you can purchase documentation sets or individual manuals using this program.
For a list of documents and how to order them, see the catalog section of SunExpressTM Internet site at http://www.sun.com/sunexpress.
The following online System AnswerBookTM products cover related network programming topics:
Solaris 2.6 Reference Manual AnswerBook
Solaris 2.6 Software Developer Collection Vol 1
Solaris 2.6 Software Developer AnswerBook Vol 2
The following third-party books are excellent sources on network programming topics:
W. Richard Stevens. UNIX Network Programming. Prentice Hall Software Series, 1990.
Stephen A. Rago. System V Network Programming. Addison-Wesley, 1993.
W. Richard Stevens. TCP/IP Illustrated, Volume I. Addison-Wesley, 1994.
Networking Applications on UNIX System V Release 4, Michael Padovano, Prentice Hall, Inc., 1993
Douglas E. Comer and David L. Stevens. Internetworking with TCP/IP, Volume I: Principles, Protocols, and Architecture, 2nd Edition. Prentice Hall, Inc., 1991.
Douglas E. Comer and David L. Stevens. Internetworking with TCP/IP, Volume II: Design, Implementation, and Internals. Prentice Hall, Inc., 1991.
Douglas E. Comer and David L. Stevens. Internetworking with TCP/IP, Volume III: Client-Server Programming and Applications, BSD Sockets Version. Prentice Hall, Inc., 1993.
Douglas E. Comer and David L. Stevens. Internetworking with TCP/IP, Volume III: Client-Server Programming and Applications, AT&T TLI Version. Prentice Hall, Inc., 1994.
Table P-1 describes the typographic changes used in this book.
Table P-1 Typographic Conventions
Typeface or Symbol |
Meaning |
Example |
---|---|---|
AaBbCc123 |
The names of commands, files, and directories; on-screen computer output |
Edit your .login file. Use ls -a to list all files. machine_name% You have mail.
|
AaBbCc123 |
What you type, contrasted with on-screen computer output |
machine_name% su Password: |
AaBbCc123 |
Command-line placeholder: replace with a real name or value |
To delete a file, type rm filename. |
AaBbCc123 |
Book titles, new words or terms, or words to be emphasized |
Read Chapter 6 in User's Guide. These are called class options. You must be root to do this. |
Table P-2 shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.
Table P-2 Shell Prompts
Shell |
Prompt |
---|---|
C shell prompt |
machine_name% |
C shell superuser prompt |
machine_name# |
Bourne shell and Korn shell prompt |
$ |
Bourne shell and Korn shell superuser prompt |
# |