forked from KolibriOS/kolibrios
FTPc: receive all data from server, larger screen buffer.
git-svn-id: svn://kolibrios.org@3792 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a2170a4fee
commit
6dfcbb3d54
@ -51,7 +51,7 @@ start:
|
|||||||
jnz exit
|
jnz exit
|
||||||
; initialize console
|
; initialize console
|
||||||
invoke con_start, 1
|
invoke con_start, 1
|
||||||
invoke con_init, 80, 25, 80, 25, title
|
invoke con_init, 80, 25, 80, 250, title
|
||||||
|
|
||||||
; Check for parameters
|
; Check for parameters
|
||||||
cmp byte [s], 0
|
cmp byte [s], 0
|
||||||
@ -278,7 +278,7 @@ exit:
|
|||||||
|
|
||||||
; data
|
; data
|
||||||
title db 'FTP client',0
|
title db 'FTP client',0
|
||||||
str1 db 'FTP client for KolibriOS v0.02',10,10,'Please enter ftp server address.',10,0
|
str1 db 'FTP client for KolibriOS v0.03',10,10,'Please enter ftp server address.',10,0
|
||||||
str2 db '> ',0
|
str2 db '> ',0
|
||||||
str3 db 'Resolving ',0
|
str3 db 'Resolving ',0
|
||||||
str4 db 10,0
|
str4 db 10,0
|
||||||
|
@ -90,15 +90,15 @@ pasv_ok:
|
|||||||
|
|
||||||
data_ok:
|
data_ok:
|
||||||
|
|
||||||
mcall recv, [datasocket], buffer_ptr2, BUFFERSIZE, MSG_DONTWAIT
|
mcall recv, [datasocket], buffer_ptr2, BUFFERSIZE, 0
|
||||||
inc eax
|
test ebx, ebx
|
||||||
jz .fail
|
jnz .fail
|
||||||
dec eax
|
|
||||||
jz .fail
|
|
||||||
mov byte[buffer_ptr2 + eax], 0
|
mov byte[buffer_ptr2 + eax], 0
|
||||||
|
|
||||||
invoke con_write_asciiz, buffer_ptr2
|
invoke con_write_asciiz, buffer_ptr2
|
||||||
|
|
||||||
|
jmp data_ok
|
||||||
|
|
||||||
.fail:
|
.fail:
|
||||||
mcall close, [datasocket]
|
mcall close, [datasocket]
|
||||||
jmp wait_for_servercommand
|
jmp wait_for_servercommand
|
||||||
|
Loading…
Reference in New Issue
Block a user