###Function###
UDPSend

###Description###
Sends data on an opened socket

###Syntax###
UDPSend ( socketarray, data )


###Parameters###
@@ParamTable@@
socketarray
	The main socket/array as returned by a <a href="UDPOpen.htm">UDPOpen</a> function.
data
	binary/string to be sent to the connected socket
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	the number of bytes sent to the opened socket.
Failure:	sets the @error flag to non-zero.
@error:	-1, -2 or -3 invalid socketarray.
	1 IPAddr is incorrect.
	2 port  is incorrect.
	Windows API WSAGetError return value (see <a href="http://msdn.microsoft.com/en-us/library/ms740668.aspx">MSDN</a>).
@@End@@


###Remarks###
None.


###Related###
UDPOpen, UDPBind, UDPRecv


###Example###
@@IncludeExample@@
