HP Rp7410 BSD Sockets Interface Programmer's Guide - Page 46
When to Receive Data
View all HP Rp7410 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 46 highlights
Using Internet Stream Sockets Sending and Receiving Data Use the MSG_PEEK option to preview incoming data. If this option is set on a recv, any data returned remains in the socket buffer as though it had not been read yet. The next recv returns the same data. When to Receive Data The server or client process should receive data after connection is established. Refer to the recv(2) man page for more information on recv. 46 Chapter 2
46
Chapter 2
Using Internet Stream Sockets
Sending and Receiving Data
Use the MSG_PEEK option to preview incoming
data. If this option is
set on a
recv
, any data returned remains in the socket buffer as though
it had not been read yet. The next
recv
returns the same data.
When to Receive Data
The server or client process should receive data after connection is
established. Refer to the
recv(2)
man page for more information on
recv
.