Thread: Need help on C

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Need help on C

    i have to write a small program to acquire a JPEG file from a DLNA server.
    Conditions & Requirements :
    - No need to implement a server-discovery-sequence. It is assumed that
    IP address of DLNA server have already known to a client.
    - C/C++, Perl, and Ruby on Linux are allowed to use.
    --------
    Hints
    --------
    - BUFFALO's client(dlna link theator( has the same function which I have to do.
    - Capture packets between DLNA server and client. Then analize them.

    Means once i know how to connect the server...
    1.my machine is linux(where im wroking)means im client
    2Server which i have to acess is windows xp
    3.DLNA server application is running on the windows xp having Ip address 192.168.0.144
    4.my mc ip(thats is linux)is 192.168.0.112

    So my job is to capture the jpeg file from server.

    need hint to write Code how to write programe to acquire file.any help will be
    great help.I am new to this field
    Best regards
    MIL

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Sorry

    Sorry Dave:
    i just wanted to know hint..simply...because i am new to this field.i dont want code.but it will be great help if i get any hint or information sort of things.<<snip email address>>
    thanks
    MIL

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Moved to network programming forum.

    Essentially, learn about sockets, then send messages to the server to request information and then interpret the responses.

    First step would be to read the "beej" tutorial if you intend to do this in C or C++.

    Perl (and maybe Ruby) has higher level network APIs, so check the perlmod documentation for say "LWP".
    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.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Thanks Salem

    Thanks alots Salem...I really wanted this information.Really a great help.thanks

Popular pages Recent additions subscribe to a feed