recvfrom
Written by V R Sunday, 28 November 2010 20:19
This function is the same as the rec API,except that the calling process also specifies the addr_p and len_p arguments to receive the sender name.The sid,buf,len and flag arguments are the same as those of the recv API.The addr_p is a pointer to the object that contain the name of the sender socket.The len_p contains the number of bytes in the object pointed to by the addr_p.The function returns _1 if it fails;otherwise,it returns the number of data bytes actually received.
| < Prev | Next > |
|---|