J
Jason
Hi all
I have a little FTP proggie. It works, on windows xp, but it doesnt work
properly on windows 2000. The first problem i have, is when retrieving a
list of files.
int bytes = cSocket.Receive(buffer, buffer.Length, 0);
this.message += ASCII.GetString(buffer, 0, bytes);
bytes is returned as size 18, my buffer.Length is set at 512, but i only get
18 back. i know for a fact that there is more since it works on my XP
machines. the above piece of code is in a while loop, keeps concatenating
the results to this.message.
so on the windows 2000 platforms i only get back the first file, whereas
with xp i get back the entire list. files are separated by "\r\n".
that is my first error.
the next error is when the cSocket.Receive just hangs. I think this is
because it is blocking itself until there is data to read. but i know there
is data to read, because it works on my XP machines. the programs "comes
back" after 10 mins, which is the connection idle timeout set on the FTP
server.
is there a component i need to install on the 2000 machines?
another peculiar note: I have tested it on four windows 2000 boxes. Two of
the four boxes "hang" for the 10min, where the other two of the four boxes
repond after the first few seconds. although they dont respond in the
desired way. but ALL four windows 2000 boxes only read back the first file.
windows xp works perfectly.
any suggestions are most welcome!
Thanks
Jason
I have a little FTP proggie. It works, on windows xp, but it doesnt work
properly on windows 2000. The first problem i have, is when retrieving a
list of files.
int bytes = cSocket.Receive(buffer, buffer.Length, 0);
this.message += ASCII.GetString(buffer, 0, bytes);
bytes is returned as size 18, my buffer.Length is set at 512, but i only get
18 back. i know for a fact that there is more since it works on my XP
machines. the above piece of code is in a while loop, keeps concatenating
the results to this.message.
so on the windows 2000 platforms i only get back the first file, whereas
with xp i get back the entire list. files are separated by "\r\n".
that is my first error.
the next error is when the cSocket.Receive just hangs. I think this is
because it is blocking itself until there is data to read. but i know there
is data to read, because it works on my XP machines. the programs "comes
back" after 10 mins, which is the connection idle timeout set on the FTP
server.
is there a component i need to install on the 2000 machines?
another peculiar note: I have tested it on four windows 2000 boxes. Two of
the four boxes "hang" for the 10min, where the other two of the four boxes
repond after the first few seconds. although they dont respond in the
desired way. but ALL four windows 2000 boxes only read back the first file.
windows xp works perfectly.
any suggestions are most welcome!
Thanks
Jason