home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Need some help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1502
Discussions: 200,954, Posts: 2,379,481, Members: 246,316
Old March 7th, 2003, 09:02 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2002
Posts: 4
Need some help

Hi
I need to design a Naming Service for a distributed system, the system needs to identify an object by an identifier, it's name.
From this name, the name service provides a runtime mechanism for deriving the address (location) of the required object.
The name service will respond to a number of requests:

Register an object - This request takes at least two parameters, the name of the object and the address of that object.

Unregister an Object - This request is the opposite of the previous request with an entry being removed from the server’s database.

Map name: This request accepts a name and returns the corresponding address (if the name is present) and any appropriate attributes.

All requests return a result, which includes appropriate errors
I want to code this in C++
Any help will be appreciated

Thanks!

Matt
Matty2002 is offline   Reply With Quote
Old March 10th, 2003, 11:27 AM     #2 (permalink)
Junior Member
 
Join Date: Apr 2002
Posts: 4
Any ideas?
Matty2002 is offline   Reply With Quote
Old March 10th, 2003, 01:31 PM     #3 (permalink)
Member
 
Join Date: Feb 2002
Posts: 161
I would recommend taking advantage of the data structures offered by the STL. Specifically, I would store the 'object database' as an STL map, with a string representing the object's name as the key, and a pointer to the object as the value. Using a map would make the three operations you listed fairly trivial.
Martee is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
The disrespect of Obama by Russian .. (41)
Is It Just Me? (2943)
Making Health Care Worse (178)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
windows 7 problem (7)
Regular Build (11)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (6)
Print spooler problem (15)
windows vista security holes (10)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
CPU fan stops spinning randomly (9)
Common Spyware Solutions (105)
How to Convert Blu Ray Disc Movie to .. (0)
How to Enjoy Your Favorite Videos on .. (0)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Modern Warfare 2: Who Bought It? (63)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Laptop with wireless problem. (3)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
windows vista security holes (10)
Point and Shoot Camera Suggestions. (4)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)
Asus P4G8X Mobo (6)
Xbox 360 GTA: SA disk error (1)


All times are GMT -4. The time now is 03:09 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28