Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2628 → Rev 2629

/kernel/branches/net/network/socket.inc
1323,6 → 1323,8
; socket exists, now try to flag an event to the application
 
mov eax, [eax + SOCKET.PID]
test eax, eax
jz .error2
mov ecx, 1
mov esi, TASK_DATA + TASKDATA.pid
 
1719,15 → 1721,11
 
mov [ebx + SOCKET.PID], 0
 
cmp [ebx + SOCKET.Protocol], IP_PROTO_UDP
je .udp
 
cmp [ebx + SOCKET.Protocol], IP_PROTO_TCP
je .tcp
 
jmp .next_socket ; kill all sockets for given PID
; The socket is stateless, just kill it right away!
 
.udp:
mov eax, ebx
mov ebx, [ebx + SOCKET.NextPtr]
call SOCKET_free
1735,10 → 1733,12
 
.tcp:
 
;;; TODO
push [ebx + SOCKET.NextPtr]
mov eax, ebx
call TCP_close
pop ebx
jmp .test_socket
 
jmp .next_socket
 
.done:
pop ebx