[Overview][Constants][Types][Procedures and functions][Index] |
Receive data from an unconnected socket
Source position: socketsh.inc line 158
function fprecvfrom( |
s: cint; |
buf: pointer; |
len: size_t; |
flags: cint; |
from: psockaddr; |
fromlen: psocklen |
):ssize_t; |
fpRecvFrom receives data in buffer Buf with maximum length Len from socket S. Receipt is controlled by options in Flags. The location pointed to by from will be filled with the address from the sender, and it's length will be stored in fromlen. The function returns the number of bytes received, or -1 on error. AddrLen.
On error, -1 is returned.
|
Create new socket |
|
|
Receive data on socket |