Thread: structure database..?

  1. #1
    Registered User
    Join Date
    Jun 2006

    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
    Oregon, USA
    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, 11:47 AM
  4. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM
  5. C structure within structure problem, need help
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 11-30-2001, 05:48 PM