Transport Interfaces Programming Guide

Preface

This manual describes the programmatic interfaces to transport services in the Solaris operating environment.

In this guide, the terms SunOSTM and SolarisTM are used interchangeably because the interfaces described in this manual are common to both. Solaris 7, the distributed computing operating environment for SunSoftTM, is a superset of SunOS. It consists of SunOS release 5.7 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.

Who Should Use This Book

The guide assists you in developing a networked, distributed application in the Solaris operating environment.

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.

How This Book Is Organized

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.

Ordering Sun Documents

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.

Related Books

The following online System AnswerBookTM products cover related network programming topics:

The following third-party books are excellent sources on network programming topics:

What Typographic Changes and Symbols Mean

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.

Shell Prompts in Command Examples

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 

#