Subversion Repositories Kolibri OS

Compare Revisions

Ignore whitespace Rev 1762 → Rev 1763

/kernel/branches/net/network/socket.inc
1,10 → 1,8
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) KolibriOS team 2004-2010. All rights reserved. ;;
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;; SOCKET.INC ;;
;; ;;
;; Written by hidnplayr@kolibrios.org, ;;
;; and Clevermouse. ;;
;; ;;
45,13 → 43,9
virtual at SOCKET.end
 
IP_SOCKET:
.LocalIP rd 4
.RemoteIP rd 4
 
.LocalIP dd ?
rd 3 ; for IPv6 addresses
 
.RemoteIP dd ?
rd 3 ; for IPv6 addresses
 
.end:
end virtual
 
788,6 → 782,9
call SOCKET_num_to_ptr
jz s_error
 
mov ecx, esi
mov esi, edx
 
jmp [eax + SOCKET.snd_proc]
 
 
796,9 → 793,6
 
DEBUGF 1,"SOCKET_send: UDP\n"
 
mov ecx, esi
mov esi, edx
 
call UDP_output
 
mov dword [esp+32], 0
811,8 → 805,6
DEBUGF 1,"SOCKET_send: TCP\n"
 
push eax
mov ecx, esi
mov esi, edx
add eax, STREAM_SOCKET.snd
call SOCKET_ring_write
pop eax
828,12 → 820,9
 
DEBUGF 1,"type: IP\n"
 
mov ecx, esi
mov esi, edx
 
call IPv4_output_raw
 
mov dword [esp+32], eax
mov [esp+32], eax
ret
 
align 4
841,7 → 830,6
 
DEBUGF 1,"SOCKET_send: ICMP\n"
 
mov ecx, esi
call ICMP_output_raw
 
mov dword [esp+32], 0