Find the answer to your Linux question:
Results 1 to 3 of 3
Hi , I created a socket.port no 21 meaning ftp client. I am sending some stings and receviing some data from server.Fine. But I want to send a file some ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    8

    how to send a file using sockets ?


    Hi ,

    I created a socket.port no 21 meaning ftp client.
    I am sending some stings and receviing some data from server.Fine.

    But I want to send a file some x.c to host using socket.
    Please can someone help me whether we can do it or not.
    If we can how can we send a file.I was only able to send buffer and data but not a file.Please if possible can you help me with example.


    Regards,
    shaiva

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    well, add just another step to your send buffer functionality:

    file => buffer => send

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    8
    Quote Originally Posted by Kloschüssel View Post
    well, add just another step to your send buffer functionality:

    file => buffer => send


    thanks for the response

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •