BSD Sockets Interface Programmer's Guide
194
Index
BSD IPC connections, 29, 124
BSD IPC system calls
, 173
BSD IPC using datagram
sockets
, 86
channel
, 18
client
, 21
client-server model
, 21
closing a socket
, 47, 100, 139,
159
communication domain
, 18
Creating a Socket
, 128
creating a socket
, 35, 40, 133
creating sockets
, 92
datagram sockets
, 18, 86
declaring socket address
variables
, 31, 88, 126
example using stream sockets
,
48
examples using datagram
sockets
, 101
FIONREAD
, 178
FIOSBNIO
, 77
Flag Options
, 45
flag options
, 98, 138
getting and setting socket
options
, 62
getting the port address for the
desired server
, 90
getting the remote
hostsInternetaddress"
, 32
getting the remote
hostsnetworkaddress"
, 89
graceful close
, 49
I/O multiplexing with select
,
114
INADDR_ANY
, 91
incoming connection requests
,
173
Internet address
, 18, 31, 86
ioctl
, 178
library calls
, 175, 177, 179
library equivalencies
, 179
library routines
, 25
LINGER options
, 47
listensbacklogparameter"
, 178
message
, 18
MSG_OOB
, 45, 82
MSG_PEEK
, 45, 99, 112
nonblocking I/O
, 41, 121
nondestructive read
, 45
other system calls
, 174
out of band data
, 45
out-of-band data
, 81
packet
, 18
pathname
, 126
peer
, 18
pending connections
, 178
port
, 18
port address
, 31, 88
portability issues
, 177
preparing address variables
,
31, 88, 126
preview an incoming message
,
99
preview incoming data
, 46
programming hints
, 167
protocols
, 18
pty location
, 178
Receiving Data
, 44
receiving data
, 137
receiving messages
, 96, 156
requesting a connection
, 41,
134
sending and receiving data
, 43,
136
sending and receiving
messages
, 95, 155
sending and receiving out-of-
band data
, 81
sending data
, 43, 136
sending messages
, 95
server
, 21
setting the server up to wait for
connection
, 37, 130
signal calls
, 179
SIOCATMARK
, 83
SO_DONTROUTE
, 67
SO_KEEPALIVE
, 66
SO_LINGER
, 68, 78
SO_RCVBUF
, 67
SO_REUSEADDR
, 65
SO_SNDBUF
, 67
sockaddr
, 31, 88, 126
sockaddr_in
, 31, 88, 126
socket address
, 19, 31, 126
socket descriptor
, 19, 35, 128
specifying a default socket
address
, 112
sprintf return value
, 179
stream sockets
, 18
summary tables for system and
library calls
, 173
TCP
, 19
troubleshooting
, 167
UDP
, 19
using a wildcard local address
,
34, 91
using broadcast addresses
, 122
using diagnostic utilities as
troubleshooting
, 168
using read/write to make
stream sockets
transparent
, 80
using shutdown
, 78
wildcard addressing
, 31, 34, 91
writing the client process
, 40,
133
writing the server and client
processes
, 92
writing the server process
, 35,
128
Interprocess communication
addressing domain
, 150
BSD IPC connections
, 17
creating a socket
, 152
declaring socket address
variables
, 150
pathname
, 150