###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:	Returns number of bytes sent to the opened socket.
Failure:	Sets @error.
@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


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