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: 1541
Discussions: 200,509, Posts: 2,374,402, Members: 245,831
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
Is It Just Me? (1635)
FT HOOD attack: 7 killed 12 injured (67)
Review My Build (5)
HELP!!! What do you think of this s.. (16)
Looking for a graphic card that wil.. (30)
Assosiations (21496)
My 1st pc build (40)
Aero in Vista (7)
PC Modern Warfare 2: it's much wors.. (12)
core i7 extreme 975, nvidia 9400gt (9)
How to Ship a PC (16)
Building my first computer (13)
[F@H SPAM 11/1/09]New month . . . n.. (33)
slaving laptop drive (7)
Recent Discussions
windows 7 retail and rtm (1)
I SELL GOOD STUFFS CCS TRACK BANK LOG.. (0)
FAT32 to NTFS file system in Win2kpro (4)
Internet very slow since updating AVG.. (8)
sell cvv us-uk-eu-au...very good. who.. (0)
how to convert mod to wmv/avi/mp4/mov.. (0)
Motherboards and my curse... (25)
Review My Build (5)
HELP!!! What do you think of this sys.. (16)
New Processor, Monitor will not turn .. (2)
2009 Build (4)
My 1st pc build (40)
Freezing During Music/Movies (1)
Windows Experience Index is screwed u.. (2)
ext. sound card laptop to stereo syst.. (2)
Remote Desktop via SSH and error mess.. (2)
Help and Support disappeared from my .. (0)
[F@H SPAM 11/1/09]New month . . . new.. (33)
Basic applications needed for "r.. (1)
core i7 extreme 975, nvidia 9400gt (9)
hard drive problem (2)
Win7 TrustedInstaller Permissions (2)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)
wireless westell versalink model 327w (1)


All times are GMT -4. The time now is 06:30 AM.
TechIMO Copyright 2008 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