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



[Overview][Constants][Types][Classes] Reference for unit 'lNet' (#LNet)

TLUdp.Send

Send data to the other side

Declaration

Source position: line 0

public function TLUdp.Send(

  const aData;

  const aSize: Integer;

  aSocket: TLSocket = nil

):Integer; override;

function TLUdp.Send(

  const aData;

  const aSize: Integer;

  const Address: String

):Integer; overload;

Arguments

aData

  

User data to send

aSize

  

Maximum size of the data to send

aSocket

  

Socket on which to send, defaults to nil. Socket does not need to be specified as UDP has only one socket all the times

Function result

Returns number of bytes sent

Arguments

aData

  

User data to send

aSize

  

Maximum size of the data to send

Address

  

The address to which to send, with UDP you can send to non-connected hosts. Format is 'ip:port' or 'host:port'

Function result

Returns number of bytes sent

Description

This method sends user data to the other side. Socket does not need to be specified as UDP has only one socket all the times.

Notes

 No notes exist for this page yet. 





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