ok...i'll post the important parts...
Server main process...creating child process to deal with more than one client:
if (pid == 0) {
close(sockfd);
...
Type: Posts; User: xixonga
ok...i'll post the important parts...
Server main process...creating child process to deal with more than one client:
if (pid == 0) {
close(sockfd);
...
Hi,
i'm making a client-server file transfer program (using sockets) and i'm having a little issue with one function.
The server asks the client for the name of the file he wants to upload, and...
hi thanks for your replies...
i did what you said (read nš of bytes from fread and send them) and it's working :D
thank you for your help and your patience
Best regards
here's the receiver content (the 'damaged' one):
original .txt:
it's the same info, except for the '00' characters
i have just now used an hexadecimal reader to look inside the receiver's txt file...and it has the text content...
the only difference from the original file is that in the end...it has a bunch of...
hm didn't noticed but yeah, the receiver files aren't the same size as the sender files....
i tried your code, and it didn't work...but i don't understand whats the problem :S
even if i am...
but the uploading file is marked with extensions...here's the uploading code:
client (uploader)
FILE* fp = fopen(buffer,"rb"); // buffer = "server.txt"
...
there must be a way of knowing if some random file is binary or not!
like p2p programs...when youre exchanging files...the program must know what type of files you are transfering...otherwise the...
i can't use any addtional software...i want this to be a client-server transmission service... i can't guarantee that the other computer has the specific software to read this kind of files...
hi all, thanks for your replies.
But that's what i'am doing:
Client side:
- fopen( binary-read mode) file; fread file; sendto server
Server side:
- fopen(binary-write mode) file; recv from...
Hi,
i'm trying to make a client-server program using sockets (unix), that allow users to transfer files from client to server.
Im using fopen and fread/fwrite to transfer the files.
The...