Sign in Join
FPDoc Onlineexperiment

fpsendto function

In unit Sockets

Send data through an unconnected socket to an address.

Declaration

pascal
function fpsendto(s: cint; msg: pointer; len: size_t; flags: cint; 
 tox: psockaddr; tolen: TSockLen): ssize_t

Description

fpSendTo sends data from buffer Msg with length len through socket S with options Flags. The data is sent to address tox, which has length toLen

Errors

On error, -1 is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.