Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3703 → Rev 3704

/programs/network/downloader/downloader.asm
187,6 → 187,7
jmp still
 
exit:
DEBUGF 1, "Exiting\n"
or eax, -1 ; close this program
mcall
 
208,6 → 209,10
cmp byte[params], 0
jne exit
 
mov ecx, [sc.work_text]
or ecx, 0x80000000
mcall 4, <10, 93>, , download_complete
 
ret
 
save_in_shared:
249,10 → 254,6
DEBUGF 2, "Saving to file\n"
mcall 70, fileinfo
 
mov ecx, [sc.work_text]
or ecx, 0x80000000
mcall 4, <10, 93>, , download_complete
 
ret
 
 
358,7 → 359,7
 
DEBUGF 1, "Reading incoming data\n"
 
mcall 40, EVM_STACK ; we only want stack events now
mcall 40, EVM_STACK + EVM_BUTTON
 
mov eax, [buf_ptr]
mov [pos], eax
365,8 → 366,10
 
.read:
mcall 23, 100 ; 1 second timeout
cmp eax, EV_BUTTON
je exit
.read_dontwait:
mcall recv, [socketnum], [pos], BUFFERSIZE, 0
mcall recv, [socketnum], [pos], BUFFERSIZE, MSG_DONTWAIT
inc eax ; -1 = error (socket closed?)
jz .no_more_data
dec eax ; 0 bytes...