Subversion Repositories Kolibri OS

Rev

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

Rev 6915 Rev 7974
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2020. All rights reserved.    ;;
4
;; Distributed under terms of the GNU General Public License       ;;
4
;; Distributed under terms of the GNU General Public License       ;;
5
;;                                                                 ;;
5
;;                                                                 ;;
6
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
6
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;   Written by hidnplayr@kolibrios.org                            ;;
8
;;   Written by hidnplayr@kolibrios.org                            ;;
Line 12... Line 12...
12
;;          GNU GENERAL PUBLIC LICENSE                             ;;
12
;;          GNU GENERAL PUBLIC LICENSE                             ;;
13
;;             Version 2, June 1991                                ;;
13
;;             Version 2, June 1991                                ;;
14
;;                                                                 ;;
14
;;                                                                 ;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
$Revision: 6915 $
17
$Revision: 7974 $
18
 
18
 
19
TCP_BIT_NEEDOUTPUT      = 1 shl 0
19
TCP_BIT_NEEDOUTPUT      = 1 shl 0
20
TCP_BIT_TIMESTAMP       = 1 shl 1
20
TCP_BIT_TIMESTAMP       = 1 shl 1
Line 1273... Line 1273...
1273
; If we can't receive any more data, then closing user can proceed.
1273
; If we can't receive any more data, then closing user can proceed.
1274
; Starting the timer is contrary to the specification, but if we dont get a FIN,
1274
; Starting the timer is contrary to the specification, but if we dont get a FIN,
1275
; we'll hang forever.
1275
; we'll hang forever.
Line 1276... Line 1276...
1276
 
1276
 
1277
        test    [ebx + SOCKET.state], SS_CANTRCVMORE
1277
        test    [ebx + SOCKET.state], SS_CANTRCVMORE
1278
        jnz     @f
1278
        jz      @f
1279
        mov     eax, ebx
1279
        mov     eax, ebx
1280
        call    socket_is_disconnected
1280
        call    socket_is_disconnected
1281
        mov     [ebx + TCP_SOCKET.timer_timed_wait], TCP_time_max_idle
1281
        mov     [ebx + TCP_SOCKET.timer_timed_wait], TCP_time_max_idle
1282
        or      [ebx + TCP_SOCKET.timer_flags], timer_flag_wait
1282
        or      [ebx + TCP_SOCKET.timer_flags], timer_flag_wait