Subversion Repositories Kolibri OS

Rev

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

Rev 7974 Rev 8026
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: 7974 $
18
$Revision: 8026 $
Line 19... Line 19...
19
 
19
 
20
struct  SOCKET
20
struct  SOCKET
Line 748... Line 748...
748
  .free:
748
  .free:
749
        call    socket_free
749
        call    socket_free
750
        ret
750
        ret
Line 751... Line 751...
751
 
751
 
752
  .tcp:
-
 
753
        call    tcp_usrclosed
-
 
754
 
752
  .tcp:
755
        test    eax, eax
753
        test    [eax + SOCKET.state], SS_ISCONNECTED
756
        jz      @f
754
        jz      @f
-
 
755
        test    [eax + SOCKET.state], SS_ISDISCONNECTING
-
 
756
        jnz     @f
757
        call    tcp_output                                      ; If connection is not closed yet, send the FIN
757
        call    tcp_disconnect
-
 
758
  @@:
-
 
759
; TODO:
-
 
760
; ...
758
  @@:
761
;       call    socket_free
Line 759... Line 762...
759
        ret
762
        ret
760
 
763
 
Line 2469... Line 2472...
2469
;                                                                 ;
2472
;                                                                 ;
2470
;-----------------------------------------------------------------;
2473
;-----------------------------------------------------------------;
2471
align 4
2474
align 4
2472
socket_is_disconnected:
2475
socket_is_disconnected:
Line 2473... Line 2476...
2473
 
2476
 
Line 2474... Line 2477...
2474
        DEBUGF  DEBUG_NETWORK_VERBOSE, "SOCKET_is_disconnected: %x\n", eax
2477
        DEBUGF  1, "SOCKET_is_disconnected: %x\n", eax
2475
 
2478
 
2476
        and     [eax + SOCKET.state], not (SS_ISCONNECTING + SS_ISCONNECTED + SS_ISDISCONNECTING)
2479
        and     [eax + SOCKET.state], not (SS_ISCONNECTING + SS_ISCONNECTED + SS_ISDISCONNECTING)