|
|
|
|||||
|
File System Demo Explanation
I'm reading through the Ice PDF manual and have a question.
In the "developing a file system client" section, there is the following snippit of code: Ice::ObjectPrx base = ic->stringToProxy("RootDir:default -p 10000"); That would indicate to me that this is building a proxy for the "RootDir" servants' default facet on port 10000, and since host isn't specified, it assumes localhost, right? Then in the "developing a file system server" section, there is the following code: NodeI::_adapter = communicator()->createObjectAdapterWithEndpoints("SimpleFilesyste m", "default -p 10000"); This would indicate to me that the adapter is listening on port 10000 (good) and on all local interfaces (also good) but with a servant name of "SimpleFilesystem". How does the client connect to the server when the client is looking for RootDir and the server is called SimpleFilesystem? |
|
|||||
|
That Explains A Bit
Thanks for the explanation Marc.
So where in the code on page 278 and 279 does the servant get created and added to the adapter? Is it just missing from the example, or am I missing it? FYI, I added the company I work for to my sig, though I'm looking at Ice for an on-the-side project... ![]() |
|
|||||
|
Perfect
Now I see it - it generates a random name if it's not the root node, otherwise the magical "RootDir" name is used. Thanks for walking me through this - there's a lot to learn...
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I start 2 registries in one IceGrid system? | russule | Help Center | 3 | 02-02-2007 03:46 AM |
| Typo in Java Glacier2 demo properties file? | bartley | Bug Reports | 2 | 02-09-2006 05:35 PM |
| CMake build system | aka50 | Patches | 0 | 07-12-2005 05:30 AM |
| Windows Installer assumes System Drive is on C: | RyanFogarty | Comments | 5 | 02-08-2005 08:19 AM |
| do you have plan that's port ice to embedded system? | damingyipai | Comments | 3 | 07-28-2004 12:04 AM |