structure database..?

This is a discussion on structure database..? within the C Programming forums, part of the General Programming Boards category; one more problem.... I am having structure clientinfo { char clientip[32]; char spi; }; I am running multi-client server program... ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    structure database..?

    one more problem....
    I am having
    structure clientinfo
    {
    char clientip[32];
    char spi;
    };


    I am running multi-client server program...

    here I need to maintain a database for client info .. every time I need to check clientip address,if it is not there ,then I nedd ro add....
    so I took
    struct clientinfo clientdb[10];
    So I can make 10 ip addresses...

    how can I check the each ipaddress.. from the database..? & how to store ....?
    and max.limit is 10.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    Use a combination of a for() loop and strcmp()?
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 05-18-2006, 11:23 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. File Database & Data Structure :: C++
    By kuphryn in forum C++ Programming
    Replies: 0
    Last Post: 02-24-2002, 10:47 AM
  4. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 09:52 AM
  5. C structure within structure problem, need help
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 11-30-2001, 04:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21