/kernel/branches/net/network/socket.inc |
---|
842,10 → 842,10 |
mov edi, edx |
xor edx, edx |
add eax, STREAM_SOCKET.rcv |
.loop: |
cmp [eax + RING_BUFFER.size], 0 |
je .block |
.loop: ;;;; FIXME: ecx! |
call SOCKET_ring_read |
test ecx, ecx |
jz .block |
call SOCKET_ring_free |
mov [esp+32], ecx ; return number of bytes copied |