Subversion Repositories Kolibri OS

Rev

Rev 4030 | Rev 4052 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4030 Rev 4035
Line 920... Line 920...
920
;
920
;
921
;-------------------------
921
;-------------------------
922
align 4
922
align 4
923
IPv4_connect:
923
IPv4_connect:
Line 924... Line 924...
924
 
924
 
925
        pusha
925
        push    eax edx
926
        lea     ecx, [eax + SOCKET.mutex]
926
        lea     ecx, [eax + SOCKET.mutex]
927
        call    mutex_lock
927
        call    mutex_lock
Line 928... Line 928...
928
        popa
928
        pop     edx eax
929
 
929
 
930
; Fill in local IP
930
; Fill in local IP
931
        cmp     [eax + IP_SOCKET.LocalIP], 0
931
        cmp     [eax + IP_SOCKET.LocalIP], 0
Line 935... Line 935...
935
 
935
 
936
; Fill in remote IP
936
; Fill in remote IP
937
        pushd   [edx + 4]
937
        pushd   [edx + 4]
Line -... Line 938...
-
 
938
        pop     [eax + IP_SOCKET.RemoteIP]
938
        pop     [eax + IP_SOCKET.RemoteIP]
939
 
939
 
940
; Set up data receiving queue
940
        push    eax
941
        push    eax
Line 941... Line 942...
941
        init_queue (eax + SOCKET_QUEUE_LOCATION)                ; Set up data receiving queue
942
        init_queue (eax + SOCKET_QUEUE_LOCATION)
942
        pop     eax
943
        pop     eax