HP Rp3440-4 - 9000 - 0 MB RAM Programmer's Manual page 174

Bsd sockets interface programmer’s guide
Hide thumbs Also See for Rp3440-4 - 9000 - 0 MB RAM:
Table of Contents

Advertisement

Programming Hints
Summary Tables for System and Library Calls
The following table contains a summary of the other system calls that
can be used with BSD Sockets.
Table 8-2
Other BSD Sockets System Calls
174
System Call
Gets the socket address of the specified socket.
getsockname
Gets, or sets, the options associated with a socket.
getsockopt,
setsockopt
Gets the name of the peer socket connected to the
getpeername
specified socket.
System Call
Can be used to read data at stream or datagram
read
sockets just like recv or recvfrom , without the
benefit of the recv flags. Read offers implementation
independence; the descriptor can be for a file, a
socket or any other object.
Can be used to write data from stream sockets (and
write
datagram sockets if you declare a default remote
socket address) just like send. Write offers
implementation independence; the descriptor can be
for a file, a socket or any other object.
Deallocates socket descriptors. The last close can be
close
used to destroy a socket. Close does a graceful
disconnect or a hard close, depending on the
LINGER option. Refer to the sections on "Closing a
Socket."
Description
Description
Chapter 8

Advertisement

Table of Contents
loading

Table of Contents