Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ file transfer
Name: Leith_Jones Date: June 1, 2005 at 10:32:10 Pacific OS: XP CPU/Ram: 2.8GHz/512 RAM
Comment:
Having some trouble creating a file transfer server/client using C++ and Winsock2. The file is read into the client perfectly fine, but when I try and rewrite it, I get the same bytes 20-30 repeated until the end of file. Right now, I'm using TCP, and it works by simply sending the filename and file size in a send () first, followed by the data in a second send (). The filename and size are received perfectly fine, however, the data is totally corrupted. Is there something super mundane that I'm screwing up?
Summary: Anyone knows how to implement file transfer under borland C++ builder 5? I use the Chat example as a template, since the server and client sockets are already there. The FTP components won't work sinc...
Summary: I have tried to create a batch file: copy %filename% c:\files and put it in the send to folder however it does not work. Does anybody know how I would be able to add an icon onto my send to menu to s...
Summary: Hi all, before i begin, yes this is an homework assignment question... got a c++ file I/O question. here is the code that i've so far. #include <iostream> #include <sting> #include <fstream> ...