Subversion Repositories Kolibri OS

Rev

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

Rev 3703 Rev 3704
Line 169... Line 169...
169
        mcall   51, 1, thread, mem - 2048
169
        mcall   51, 1, thread, mem - 2048
170
        pop     ecx
170
        pop     ecx
171
        mcall   18, 3
171
        mcall   18, 3
Line 172... Line 172...
172
 
172
 
173
mainloop:
-
 
174
    DEBUGF  1, 'TELNET: Waiting for events\n'
-
 
175
        mcall   10
-
 
176
    DEBUGF  1, 'TELNET: EVENT %x !\n', eax
-
 
177
 
173
mainloop:
178
        call    [con_get_flags]
174
        call    [con_get_flags]
179
        test    eax, 0x200                      ; con window closed?
175
        test    eax, 0x200                      ; con window closed?
Line 180... Line -...
180
        jnz     exit
-
 
181
 
176
        jnz     exit
182
  .check_for_data:
177
 
183
        mcall   recv, [socketnum], buffer_ptr, BUFFERSIZE, 0
-
 
184
        cmp     eax, -1
-
 
185
        jne     .parse_data
-
 
186
        cmp     ebx, 6  ; EWOULDBLOCK
178
        mcall   recv, [socketnum], buffer_ptr, BUFFERSIZE, 0
187
        je      mainloop
-
 
Line 188... Line -...
188
        jmp     closed
-
 
Line 189... Line 179...
189
 
179
        cmp     eax, -1
Line 190... Line 180...
190
 
180
        je      closed
191
  .parse_data:
181
 
Line 215... Line 205...
215
        mcall   send, [socketnum], buffer_ptr, , 0
205
        mcall   send, [socketnum], buffer_ptr, , 0
216
        pop     edi esi
206
        pop     edi esi
Line 217... Line 207...
217
 
207
 
218
  .print:
208
  .print:
219
        cmp     esi, edi
209
        cmp     esi, edi
Line 220... Line 210...
220
        jae     .check_for_data
210
        jae     mainloop
221
 
211
 
Line 222... Line 212...
222
        push    esi
212
        push    esi