Subversion Repositories Kolibri OS

Compare Revisions

Ignore whitespace Rev 5522 → Rev 5521

/kernel/trunk/network/socket.inc
179,8 → 179,8
struct socket_queue_entry
 
data_ptr dd ?
buf_ptr dd ?
data_size dd ?
buf_ptr dd ?
 
ends
 
822,7 → 822,7
rep movsd
.nd:
 
call NET_BUFF_free
call NET_packet_free
pop ecx eax ; return number of bytes copied to application
xor ebx, ebx
ret
1441,6 → 1441,7
; ecx = data size
; esi = ptr to data
; [esp] = ptr to buf
; [esp + 4] = buf size
;
; OUT: /
;
1450,7 → 1451,7
 
DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_input: socket=%x, data=%x size=%u\n", eax, esi, ecx
 
push ecx
mov [esp+4], ecx
push esi
mov esi, esp
 
1474,13 → 1475,16
call mutex_unlock
popa
 
call NET_BUFF_free
call NET_packet_free
add esp, 8
 
ret
 
 
;--------------------------
;
; eax = ptr to ring struct (just a buffer of the right size)
; IN: eax = ptr to ring struct (just a buffer of the right size)
; OUT: eax = unchanged / 0 on error
;
align 4
SOCKET_ring_create: