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



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

SendTo

Send data through an unconnected socket to an address.

Declaration

Source position: socketsh.inc line 182

function SendTo(

  Sock: LongInt;

  const Buf;

  BufLen: LongInt;

  Flags: LongInt;

  var Addr;

  AddrLen: LongInt

):LongInt;

Description

SendTo sends data from buffer Buf with length Buflen through socket Sock with options Flags. The data is sent to address Addr, which has length AddrLen

Errors

On error, -1 is returned.

See also

Socket

  

Create new socket

Send

  

Send data through 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