Thread: to receive image file through network port

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    4

    to receive image file through network port

    hi,
    i wanted to receive an image (jpeg) file through internet port ( ie http port (80) ) and display it.
    i wanted a brief idea on how to use sockets for this purpose.
    a client machine should be abe to receive image using sockets.
    this is required for my project.

    thanking you,

    regards,
    nadeem athani

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Search google for the "beej network tutorial".
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    I'm actually working on a project at my job doing exactly this. I'm using UDP sockets and punching holes in NAT for the traffic to go through. just read the file into a buffer and just send the raw buffer.

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    4
    Quote Originally Posted by Salem View Post
    Search google for the "beej network tutorial".
    thanks alot
    it has been really useful.

    Quote Originally Posted by Elkvis View Post
    I'm actually working on a project at my job doing exactly this. I'm using UDP sockets and punching holes in NAT for the traffic to go through. just read the file into a buffer and just send the raw buffer.
    hi,
    i have used UDP sockets, in the function getaddrinfo() I am getting an error "servname not supported for ai_socktype". this error is called by function gai_strerror().
    kindly, give me solution for this.
    i hav given valid IP address.

    thanking you,
    regards,
    nadeem athani
    Last edited by nadeem athani; 03-08-2011 at 07:39 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM