| |
1. Introduction to Network Programming Interfaces | 1 |
| ..The Client-Server Model | 2 |
| ..Network Services in the Solaris Environment | 3 |
| ..Layered Protocols | 4 |
| ....Open Systems Interconnection Reference Model | 5 |
| ....Internet Protocol Suite (TCP/IP) | 7 |
| ....TCP/IP Protocol Stack | 7 |
| ..Connection Oriented and Connectionless Protocols | 8 |
| ....Connection-Oriented Protocols | 9 |
| ....Connectionless Protocols | 9 |
| ....Choosing Between COTS and CLTS | 10 |
2. Programming With Sockets | 11 |
| ..Sockets are Multithread Safe | 11 |
| ..SunOS Binary Compatibility | 11 |
| ..What Are Sockets | 12 |
| |
| ....Nonblocking Sockets | 43 |
| ....Asynchronous Sockets | 44 |
| ....Interrupt Driven Socket I/O | 44 |
| ....Signals and Process Group ID | 45 |
| ....Selecting Specific Protocols | 46 |
| ....Address Binding | 47 |
| ....Broadcasting and Determining Network Configuration | 49 |
| ....Socket Options | 52 |
| ....inetd Daemon | 53 |
| ..Moving Socket Applications to Solaris 2.x | 54 |
3. Programming With the Transport Layer Interface (TLI) | 59 |
| ..TLI Is Multithread Safe | 59 |
| ..What Is TLI | 60 |
| ..Connectionless Mode | 61 |
| ....Connectionless Mode Routines | 62 |
| ..Connectionless Mode Service | 62 |
| ....Endpoint Initiation | 62 |
| ....Data Transfer | 64 |
| ....Datagram Errors | 67 |
| ..Connection Mode | 67 |
| ....Connection Mode Routines | 68 |
| ..Connection Mode Service | 72 |
| ....Endpoint Initiation | 72 |
| ....Connection Establishment | 78 |
| |
| ....Data Transfer | 84 |
| ....Connection Release | 88 |
| ..A Read/Write Interface | 90 |
| ....write | 91 |
| ....read | 91 |
| ....close | 92 |
| ..Advanced Topics | 93 |
| ....Asynchronous Execution Mode | 93 |
| ....Advanced Programming Example | 93 |
| ..State Transitions | 100 |
| ....TLI States | 100 |
| ....Outgoing Events | 101 |
| ....Incoming Events | 102 |
| ....Transport User Actions | 103 |
| ....State Tables | 103 |
| ..Guidelines to Protocol Independence | 106 |
| ..TLI Versus Socket Interfaces | 107 |
| ..Socket-to-TLI Equivalents | 108 |
4. Transport Selection and |
| ..Name-to-Address Mapping | 111 |
| ..Transport Selection Is Multithread Safe | 111 |
| ..Transport Selection | 112 |
| ....How Transport Selection Works | 112 |
| ..../etc/netconfig File | 113 |