re: server access



> hi!

JHY!,


>      where the servant 's host and port  are generated ?

ORBit2 creates connections/gates using the linc-lib. Assuming that you
dont run your server behind a firewall, client and server open sockets
on arbitrary ports on their host-machine. the server is listening for
connection-requests and accepts on fresh ports.


>      who and how to determine the servant's host and port ?

Server offer services. If you want to use a service you have to know its
"profile". A profile contains all data for a specific protocol, that is
needed to access an object.  If you want to acces an object using INET,
the profile contains host, port, objectkey (address within server scope)
and the possible GIOP-protocol. An object might be reachable over
different transport layers ie. unix-sockets, inet, file-system, etc.
using different protocols ie. http, giop, etc., each defined by its
profile.   

A set of profiles and a single interface identifier are combined to an
IOR. 
Those IOR-strings IOR:aabbccddeeff0011223344556677889900  contain
exactly the above information, marshalled and encoded for
inet-transport.

Usually the Object-Adaptor manages objects and creates profiles for
access. But if your server is behind a firewall, it gets more complex as
the servers host is not reachable directly.  

>             Regards!
>             jhy

Cheers, Frank
-- 
-------------------------------------------------------------
 Frank Rehberger <frehberg@cs.tu-berlin.de>
-------------------------------------------------------------
 "Global order can arise from local interactions."
 [A.Turing, 1952]
-------------------------------------------------------------
 "when all nodes have reached that [stable] state, the whole 
 graph is as dead as a doornail and the diffusing computation 
 is defined to have terminated" [E.W.Dijkstra, 1980]
-------------------------------------------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]