PDA

View Full Version : file transfer


shazj
11-12-2002, 07:15 PM
I'm developing a chat application, and i was wondering: If i want to include file transfer functions in it.... should i directly send the file, broken up into Datagram Packets (i'm using datagram sockets)... or should I write a separate FTP client program for it.
I don't have much idea how to use the FTP class libraries to do this. Which method is better, and how would I implement it?

Strike
11-12-2002, 09:10 PM
no clue about the FTP stuff, but ... UDP for chat? Wouldn't you want a reliable transport mechanism for chat?

inkedmn
11-12-2002, 10:25 PM
i can see how portions of the program might use UDP (like reinforming clients of a server restart, or new clients trying to connect to an unknown server on the local subnet), but building the whole application in UDP wouldn't really be a good idea if security and reliability are ANY concern at all.