Thread: network programming

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    38

    network programming

    I want to make c program to display following things

    total no. of computers in the network
    their IP addresses
    their ethernet cards network identification number/address
    their computer names (if any)
    workgroup of computer

    the computers are networked using WINDOWS2000

    can someone give me appropriate links to study ..so that i'm able to make these programs

    or otherwise can give links to such codes so that i can study the code to understand how it is done

    thanx

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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
    Mar 2004
    Posts
    38
    i would appreciate something more specific to the problem
    bcoz the time available is less

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    We're not here to spoon-feed you answers for problems which you don't "have time for".
    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
    Mar 2004
    Posts
    38
    i never asked to be spoon fed
    i just asked for some specific link instead of 10's of links you gave me
    i have time for the problem but ...not so much time that i can go through tens of links ...so all iasked for was something more specific and not all possible links for network programming

  6. #6
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Here is a specific link. It should be able to help you quite a bit.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  7. #7
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    NetServerEnum (Enumerates non-firewalled Windows computers on the network.)
    gethostbyname (Given a computer name, retrieves its IP address.)
    SendARP (Given an IP address, retrieves its MAC address.)
    GetNetworkParams (Retrieves the domain of the local computer.)

  8. #8
    Registered User ~Kyo~'s Avatar
    Join Date
    Jun 2004
    Posts
    320
    anon whats the header for those?

  9. #9
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    If you look the functions up in MSDN (Search: MSDN functionName), the required header and library are at the bottom of the page.

  10. #10
    Registered User
    Join Date
    Mar 2004
    Posts
    38
    thank a lot .... anonytmouse

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 3D Network Analysis Tool
    By durban in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 11-08-2005, 06:33 PM
  2. Need help with easy Network setup
    By the dead tree in forum Tech Board
    Replies: 9
    Last Post: 04-08-2005, 07:44 PM
  3. network problems
    By lucy in forum Tech Board
    Replies: 6
    Last Post: 01-01-2003, 03:33 PM
  4. Got Network?
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 11-21-2002, 03:44 PM
  5. WinXP Network Connections pop-up
    By DavidP in forum Tech Board
    Replies: 1
    Last Post: 10-02-2002, 05:36 PM