###Function###
TCPRecv

###Description###
Receives data from a connected socket.

###Syntax###
TCPRecv ( socket, maxlen )


###Parameters###
@@ParamTable@@
mainsocket
	The connected socket identifier (SocketID) as returned by a <a href="TCPAccept.htm">TCPAccept</a> or a <a href="TCPConnect.htm">TCPConnect</a> function.
maxlen
	max # of characters to receive.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns binary/string sent by the connected socket.
Failure:	Returns "" and set @error according to Windows API WSAGetError return.
@@End@@


###Remarks###
If binary data is received it can be converted to a hexadecimal string with the String function.


###Related###
TCPStartup, TCPAccept, TCPConnect, TCPTimeout (Option), String


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