CSocketMaster: RecvData

RecvData

This function is to retrieve data from the buffer. If we are using TCP then the data is retrieved from a local buffer (m_strRecvBuffer). If we are using UDP the data is retrieved from winsock buffer. This function returns number of bytes received, and move data from the buffer into the data argument. MOVE means that data will be removed from the buffer.



 Private Function RecvData(
	  ByRef Data As Variant,
	  Optional varClass As VbVarType,
	  Optional maxLen As Variant ) As Long

Parameters

Data
[ByRef] Variant.
varClass
[ByRef] Optional. VbVarType.
maxLen
[ByRef] Optional. Variant.

Return Values

Long - 

Remarks

See Also

Project pop2owa Overview Class CSocketMaster Overview CSocketMaster Properties CSocketMaster Methods ProcessOptions RecvDataToBuffer