Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3703 → Rev 3704

/programs/network/telnet/telnet.asm
171,25 → 171,15
mcall 18, 3
 
mainloop:
DEBUGF 1, 'TELNET: Waiting for events\n'
mcall 10
DEBUGF 1, 'TELNET: EVENT %x !\n', eax
 
call [con_get_flags]
test eax, 0x200 ; con window closed?
jnz exit
 
.check_for_data:
mcall recv, [socketnum], buffer_ptr, BUFFERSIZE, 0
cmp eax, -1
jne .parse_data
cmp ebx, 6 ; EWOULDBLOCK
je mainloop
jmp closed
je closed
 
 
.parse_data:
 
DEBUGF 1, 'TELNET: got %u bytes of data !\n', eax
 
mov esi, buffer_ptr
217,7 → 207,7
 
.print:
cmp esi, edi
jae .check_for_data
jae mainloop
 
push esi
call [con_write_asciiz]