Chapter Contents |
Previous |
Next |
Porting UNIX Socket Applications to the SAS/C Environment |
While almost every socket-related BSD function is available in the SAS/C Library, not all of the traditional UNIX features of these functions are available. The descriptions in Socket Function Reference, describe the features of each function. This section contains a summary of the most significant restrictions.
Socket Descriptors |
Addressing Families |
The BSD socket library
design supports the use of more than one type of transport mechanism, known
as the addressing family. UNIX implementations usually support at least two
addressing families:
AF_INET
and
AF_UNIX
.
AF_INET
uses TCP/IP to transport data.
AF_UNIX
transports the data using
the UNIX file system.
With integrated sockets, either
AF_INET
or
AF_UNIX
can be used. With non-integrated sockets, only
AF_INET
can be used. Programs that use
AF_UNIX
can usually be modified
to use
AF_INET
.
Sockets |
setsockopt
and
getsockopt
functions.
fcntl
commands.
ioctl
commands.
errno
values.
In addition, there are the following general restrictions:
socketpair
function is supported only with integrated sockets.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.