BSD Sockets Interface Programmer's Guide

Index
193
A
accept
domain stream sockets
, 124,
130, 136
Internet stream sockets
, 29,
37, 43
nonblocking I/O
, 77
pending connections
, 178
summary table
, 173
address conversion call
, 48
addressing domain
, 31, 126, 150
AF_INET
, 18, 19, 28, 89
AF_UNIX
, 18, 19, 124
Asynchronous
examples
, 76
sockets
, 115
B
bcmp
, 179
bcopy
, 179
bind
datagram sockets
, 87, 93
domain datagram sockets
, 149
domain stream sockets
, 124
example usage
, 66
Internet stream sockets
, 29, 87
summary table
, 173
blocking mode
, 121
broadcast address
, 122
bzero
, 179
C
Client-server model
, 21
close
domain stream sockets
, 139
Internet datagram sockets
,
100
Internet stream sockets
, 47
summary table
, 174
with shutdown
, 177
with SO_LINGER option
, 78
connect
domain stream sockets
, 134
Internet stream sockets
, 41
SO_REUSEADDR
, 65
specifying default socket
address
, 112
summary table
, 173
D
datagram sockets
, 18, 86, 101,
112, 173
E
endhostent
, 176
endnetent
, 176
endprotoent
, 176
endservent
, 176
F
fcntl
, 77, 121, 175
FIOASYNC
, 175
FIONREAD
, 175, 178
FIOSNBIO
, 77, 121
G
getcwd
, 179
gethostbyaddr
, 39, 176
gethostbyent
, 176
gethostbyname
, 89, 176
gethostent
, 33, 90
getnetbyaddr
, 176
getnetbyent
, 176
getnetbyname
, 176
getpeerbyname
, 174
getprotobyent
, 176
getprotobyname
, 35, 40, 92, 176
getprotobynumber
, 176
getservbyent
, 176
getservbyname
, 34, 90, 176
getservbyport
, 176
getservent
, 91
getsockbyname
, 174
getsockname
, 48
getsockopt
, 62, 174
getwd
, 179
H
htonl
, 177
htons
, 177
I
index
, 179
inet
, 89
inet_addr
, 176
inet_lnaof
, 176
inet_makeaddr
, 176
inet_netof
, 176
inet_network
, 176
inetd
, 169
Internet
address family
, 18, 19
sockets
, 28
Internet address
, 18
Internet daemon
, 169
Interprocess Communication
accepting a connection
, 38, 131
adding server process to the
Internet daemon
, 169
address conversion
, 177
address conversion call
, 48
address family
, 17, 32, 89
addressing
, 17
addressing domain
, 31, 88, 126
AF_INET
, 32
association
, 17
binding
, 18
binding a socket address to
server processs"
, 36, 129
binding a socket to UNIX
domain datagram sockets
,
153
binding socket addresses to
datagram sockets
, 93
BSD IPC
, 177, 178, 179