Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3704 → Rev 3703

/programs/network/telnet/telnet.asm
171,15 → 171,25
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
je closed
jne .parse_data
cmp ebx, 6 ; EWOULDBLOCK
je mainloop
jmp closed
 
 
.parse_data:
 
DEBUGF 1, 'TELNET: got %u bytes of data !\n', eax
 
mov esi, buffer_ptr
207,7 → 217,7
 
.print:
cmp esi, edi
jae mainloop
jae .check_for_data
 
push esi
call [con_write_asciiz]