Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-18-2005
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
name.Endpoints semantics

If I specify (in a configuration file) an endpoint list, for example:

MonitorAdapter.Endpoints=tcp -h curly -p 10000:tcp -h curly -p 100001: ...

Does this mean that seperate invocations (separate processes) of a client fed that configuration file will use port 10000, 10001, etc.? Or does it mean that the endpoints will be used sequentially within a given process as adapters are created?

Is there a way to have an object adapter select its own port?

Thanks!
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #2 (permalink)  
Old 07-18-2005
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Quote:
Does this mean that seperate invocations (separate processes) of a client fed that configuration file will use port 10000, 10001, etc.? Or does it mean that the endpoints will be used sequentially within a given process as adapters are created?
The property you've defined causes the adapter to create several endpoints. Normally this is only necessary when you have special requirements. For example, when you need endpoints that use different transports, or for endpoints that are on individual network interfaces.

You'd only be able to execute one process at a time with this configuration on the same host, since the ports will already be in use by the first process.

Quote:
Is there a way to have an object adapter select its own port?
Yes, if you leave off the port, the object adapter will ask the operating system to pick one for it. The implication is that subsequent invocations of the program will most likely use different ports, and therefore any proxies created by the previous incarnation of the program are no longer valid.

- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Endpoints galbe Help Center 23 02-09-2005 08:41 AM
nonmutating semantics precision needed annekat Help Center 4 08-05-2004 05:20 AM
Semantics of pass by value for interface chaukmean Help Center 2 11-27-2003 06:21 AM
semantics of slice2java --depend manfred Bug Reports 0 05-21-2003 03:49 AM
Documentation : At-most-once Semantics dipakyadav Bug Reports 4 02-21-2003 06:16 AM


All times are GMT -4. The time now is 08:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.