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



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

TLUdp.SendMessage

Send a message to the other side

Declaration

Source position: line 0

public function TLUdp.SendMessage(

  const msg: String;

  aSocket: TLSocket = nil

):Integer; override;

function TLUdp.SendMessage(

  const msg: String;

  const Address: String

):Integer; overload;

Arguments

msg

  

The user message to send

aSocket

  

The socket to send on, 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

msg

  

The user message to send

Address

  

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

Function result

Returns number of bytes sent

Description

This method is used to send a string message 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