Subversion Repositories Kolibri OS

Rev

Rev 9976 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9976 Rev 9993
Line 13... Line 13...
13
;;         GNU GENERAL PUBLIC LICENSE                              ;;
13
;;         GNU GENERAL PUBLIC LICENSE                              ;;
14
;;          Version 2, June 1991                                   ;;
14
;;          Version 2, June 1991                                   ;;
15
;;                                                                 ;;
15
;;                                                                 ;;
16
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 17... Line 17...
17
 
17
 
Line 18... Line 18...
18
$Revision: 9976 $
18
$Revision: 9993 $
Line 19... Line 19...
19
 
19
 
20
struct  SOCKET
20
struct  SOCKET
Line 757... Line 757...
757
        jne     .free
757
        jne     .free
Line 758... Line 758...
758
 
758
 
759
        cmp     [eax + SOCKET.Protocol], IP_PROTO_TCP
759
        cmp     [eax + SOCKET.Protocol], IP_PROTO_TCP
760
        jne     .free
760
        jne     .free
761
        test    [eax + SOCKET.state], SS_ISCONNECTED
761
        test    [eax + SOCKET.state], SS_ISCONNECTED
762
        jz      .free
762
        jz      @f
763
        test    [eax + SOCKET.state], SS_ISDISCONNECTING
763
        test    [eax + SOCKET.state], SS_ISDISCONNECTING
764
        jnz     .free
764
        jnz     @f
-
 
765
        call    tcp_disconnect
-
 
766
@@:
765
        call    tcp_disconnect
767
        ret
766
        test    eax, eax
768
;        test    eax, eax
767
        jz      .end
769
;        jz      .end
768
  .free:
770
  .free:
769
        call    socket_free
771
        call    socket_free
770
  .end:
772
  .end: