HP Rp5405 BSD Sockets Interface Programmer's Guide - Page 174
Summary Tables for System and Library Calls
View all HP Rp5405 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 174 highlights
Table 8-2 Programming Hints Summary Tables for System and Library Calls System Call Description getsockname Gets the socket address of the specified socket. getsockopt, Gets, or sets, the options associated with a socket. setsockopt getpeername Gets the name of the peer socket connected to the specified socket. The following table contains a summary of the other system calls that can be used with BSD Sockets. Other BSD Sockets System Calls System Call Description read write close Can be used to read data at stream or datagram 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 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 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." 174 Chapter 8