|
|
|
|||||
|
Ip Addresses and basic conection questions
Hello, i'm very new to ICE an also to network applications, so i have a couple of questions and i hope you can help me (and maybe point me to the proper manual pages, since i haven't yet found the answer to these questions).
1) Ice::ObjectPrx base= ic->stringToProxy("SimplePrinter:default -p 10000"); What ip address is being addressed here? Is it only localhost port 10.000? How can i connect specifically to, say, 192.168.0.165??? I think "SimplePrinter" here is an abstraction for an endpoint (ip address?), is it right? 2) In the server, how can i get the ip address of the machine that is using a servant object? 3) I need to do a chat-like program that's going to work on a class C lan (PC addreses 192.168.0.x) How can i implement clients that auto-discover the servers on my lan? (for example, on start-up clients offers me a list of servers that he found on the lan) Thank you very much! P.D.: signature added ![]() Last edited by EmmanuelOga : 07-31-2006 at 03:38 PM. |
|
|||||
|
Signature addition done!
![]()
__________________
Emmanuel Oga Q4 Technologies Argentina (www.q4tech.com) Q4Social Network (Internal lan messenger/file transfer app) |
|
||||||
|
Quote:
"SimplePrinter:default -h 192.168.0.165 -p 10000" would means something like "create a proxy for an object whose identity is 'SimplePrinter' which can be communicated with via the host with the IP address 192.168.0.165 using port 10000 and the default protocol for the communicator 'ic'". The Ice documentation describes Ice proxies in detail (including this specific example). I recommend giving it a good read. It will give you a huge head start in getting your project off the ground. Quote:
Quote:
Cheers |
|
||||||
|
Quote:
.The "Clients semantics" are now similar to the "server semantics", i.e. if you omit -h, your stringified proxy expands to a proxy with an endpoint for each local interface except loopback--except when loopback is the only interface. This will be fixed in the next revision on the manual. Cheers, Bernard |
![]() |
| 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 |
| Multiple IP addresses | mwilson | Help Center | 1 | 11-13-2006 03:10 PM |
| Using Ice in an environment with changing IP addresses | hiasl | Help Center | 7 | 09-19-2005 06:36 AM |
| Visual Basic two-way communication with Java | msciarra | Help Center | 3 | 12-01-2004 03:33 PM |
| IceBox Conection refused | xdm | Help Center | 5 | 12-11-2003 02:19 PM |
| basic freeze problem | salva | Help Center | 1 | 06-30-2003 07:14 PM |