US Census name statistics lookup program

A client server demo

This is system using pipes (fifo) to create a client to which provides name statistics, and a server which looks up the data in large, preprocessed, structure. It can be run here:

System Architecture


Client Server Communication Protocol

Request Messages

General message format $COMMAND*NAME#

Where COMMAND is one of:

  • LAST - search last name database
  • MALE - search male firstname database
  • FEMALE - search female firstname database
  • PREV - Return name record just before the last one returned, using current database
  • NEXT- Return the name record following the last one returned, using current database

Replies are in the form:


Where name is the closest match found (for a search) or the next or previous name (for those commands).

Code Base

  1. ServerCode (nameserver.cpp)
  2. PipeCode (fifo.h)
  3. ClientCode (namefetchajax.cpp)
  4. HtmlCode (name_stats_ajax.html)

-- JimSkon - 2011-03-02

Topic attachments
I Attachment Action Size Date Who Comment
Jpgjpg NameStatisticArch.jpg manage 19.8 K 2011-03-02 - 14:32 JimSkon NameStats Arch
Topic revision: r2 - 2011-03-03 - JimSkon
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback