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