#2
吹水佬2023-08-13 15:48
|
PROCEDURE _RecvData
LPARAMETERS _hSocket
LOCAL szReadBuf, nDataLen
szReadBuf = SPACE(32768) && 32 * 1024
nDataLen = recv(_hSocket, @szReadBuf, LEN(szReadBuf), 0)
IF nDataLen > 0
szReadBuf = LEFT(szReadBuf, nDataLen)
this._OnRead(_hSocket, szReadBuf)
ENDIF
closesocket(_hSocket)
ENDPROC
这里要加一个循环吗?
[此贴子已经被作者于2023-8-13 14:54编辑过]