[Overview][Constants][Types][Classes] | Reference for unit 'lNet' (#LNet) |
Send data to the other side
Source position: line 0
public function TLUdp.Send( |
const aData; |
const aSize: Integer; |
aSocket: TLSocket = nil |
):Integer; override; |
const aData; |
const aSize: Integer; |
const Address: String |
):Integer; overload; |
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 |
Returns number of bytes sent
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' |
Returns number of bytes sent
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.
No notes exist for this page yet.