Search:

Type: Posts; User: xixonga

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,158

    ok...i'll post the important parts... Server...

    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);
    ...
  2. Replies
    2
    Views
    1,158

    function exits alone

    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...
  3. Replies
    20
    Views
    7,425

    hi thanks for your replies... i did what you...

    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
  4. Replies
    20
    Views
    7,425

    here's the receiver content (the 'damaged' one):...

    here's the receiver content (the 'damaged' one):


    original .txt:



    it's the same info, except for the '00' characters
  5. Replies
    20
    Views
    7,425

    i have just now used an hexadecimal reader to...

    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...
  6. Replies
    20
    Views
    7,425

    hm didn't noticed but yeah, the receiver files...

    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...
  7. Replies
    20
    Views
    7,425

    but the uploading file is marked with...

    but the uploading file is marked with extensions...here's the uploading code:

    client (uploader)

    FILE* fp = fopen(buffer,"rb"); // buffer = "server.txt"


    ...
  8. Replies
    20
    Views
    7,425

    there must be a way of knowing if some random...

    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...
  9. Replies
    20
    Views
    7,425

    i can't use any addtional software...i want this...

    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...
  10. Replies
    20
    Views
    7,425

    hi all, thanks for your replies. But that's...

    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...
  11. Replies
    20
    Views
    7,425

    unknown file type reading

    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...
Results 1 to 11 of 11