| [Overview][Constants][Types][Procedures and functions][Index] | 
Receive data on socket
Source position: socketsh.inc line 157
| function fprecv( | 
| s: cint; | 
| buf: pointer; | 
| len: size_t; | 
| flags: cint | 
| ):ssize_t; | 
fpRecv reads at most len bytes from socket S into address buf. The socket must be in a connected state. Flags can be one of the following:
The functions returns the number of bytes actually read from the socket, or -1 if a detectable error occurred.
Errors are reported in SocketError, and include the following:
| 
 | Send data through socket |