help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] Reference for unit 'Sockets' (#rtl)

RecvFrom

Receive data from an unconnected socket

Declaration

Source position: socketsh.inc line 184

function RecvFrom(

  Sock: LongInt;

  var Buf;

  Buflen: LongInt;

  Flags: LongInt;

  var Addr;

  var AddrLen: LongInt

):LongInt;

Description

RecvFrom receives data in buffer Buf with maximum length BufLen from socket Sock. Receipt is controlled by options in Flags. Addr will be filled with the address from the sender, and will have length The function returns the number of bytes received, or -1 on error. AddrLen.

Errors

On error, -1 is returned.

See also

Socket

  

Create new socket

recv

  

Receive data on socket

RecvFrom

  

Receive data from an unconnected socket

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505