* Re: defining multiple interfaces in a server
1994-05-12 16:33 defining multiple interfaces in a server James W. Hong
@ 1994-05-12 20:03 ` Jim Wade
1994-05-12 21:00 ` Yuh Ming YONG
1994-05-13 13:09 ` Weidong Wang
2 siblings, 0 replies; 5+ messages in thread
From: Jim Wade @ 1994-05-12 20:03 UTC (permalink / raw)
James,
You probably should look at the Motif bank example in the AIX DCE examples
directory. The bank server uses 2 interfaces, one for the transactions and
one for administration. There is an idl file for each interface and
both stubs are bound into the server.
Jim
James W. Hong (jwkhong@csd.uwo.ca) wrote:
: This may be a dumb question but I was wondering if someone could tell me
: how I can define multiple interfaces for a single server application.
: Examples I have seen so far only allows a single interface to be defined.
: I am currently using AIX DCE version 1.1.
: For example, I want to have an interface for the server application (i.e.,
: application interface) and another interface for the management of the server
: (i.e., management interface) in the same server program. Operations in the
: management interface will allow a client to probe about the staus/state of the
: server application.
: Any help would be appreciated.
: James
--
-------------------------------------------------------------------------------
| Jim Wade, DCE 1.0.3 Tech Lead | Token-ring = jwade@rebel.austin.ibm.com|
| T/L 678-3723, Austin, TX | VNET = JWADE@AUSTIN |
| 512-838-3723 | Internet = jwade@austin.ibm.com |
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: defining multiple interfaces in a server
1994-05-12 16:33 defining multiple interfaces in a server James W. Hong
1994-05-12 20:03 ` Jim Wade
@ 1994-05-12 21:00 ` Yuh Ming YONG
1994-05-13 13:09 ` Weidong Wang
2 siblings, 0 replies; 5+ messages in thread
From: Yuh Ming YONG @ 1994-05-12 21:00 UTC (permalink / raw)
In article <2qtlo3$qce@falcon.ccs.uwo.ca>, jwkhong@csd.uwo.ca (James W. Hong) writes:
> This may be a dumb question but I was wondering if someone could tell me
> how I can define multiple interfaces for a single server application.
> Examples I have seen so far only allows a single interface to be defined.
> I am currently using AIX DCE version 1.1.
>
> For example, I want to have an interface for the server application (i.e.,
> application interface) and another interface for the management of the server
> (i.e., management interface) in the same server program. Operations in the
> management interface will allow a client to probe about the staus/state of the
> server application.
>
You can use Object UUID to define finer granularity of control on the
same server program. There is a good description of binding models in the
OSF DCE Application Development Guide.
Good luck.
-Yuh Ming
=========================================================================
Yuh Ming, Yong Internet: ymyong@neumann.uwaterloo.ca
Department of Computer Science
University of Waterloo
Waterloo, Ontario
Canada N2L 3G1
=========================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: defining multiple interfaces in a server
1994-05-12 16:33 defining multiple interfaces in a server James W. Hong
1994-05-12 20:03 ` Jim Wade
1994-05-12 21:00 ` Yuh Ming YONG
@ 1994-05-13 13:09 ` Weidong Wang
1994-05-15 18:46 ` James W. Hong
2 siblings, 1 reply; 5+ messages in thread
From: Weidong Wang @ 1994-05-13 13:09 UTC (permalink / raw)
In article <2qtlo3$qce@falcon.ccs.uwo.ca>, jwkhong@csd.uwo.ca (James W. Hong) writes:
|> This may be a dumb question but I was wondering if someone could tell me
|> how I can define multiple interfaces for a single server application.
|> Examples I have seen so far only allows a single interface to be defined.
|> I am currently using AIX DCE version 1.1.
|>
|> For example, I want to have an interface for the server application (i.e.,
|> application interface) and another interface for the management of the server
|> (i.e., management interface) in the same server program. Operations in the
|> management interface will allow a client to probe about the staus/state of the
|> server application.
|>
|> Any help would be appreciated.
|>
Just do it. Just as how you set up your first interface (rpc_server_register_if,
inq_bindings, register_auth_info, rpc_ep_register, rpc_ns_binding_export, etc),
then before you call rpc_server)listen, set up another interface. Then set up
your third interface, .... After you are done with interfaces you want, finally
you call rpc_server_listen.
Weidong Wang
DCE Systems Engineering, OSF
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: defining multiple interfaces in a server
1994-05-13 13:09 ` Weidong Wang
@ 1994-05-15 18:46 ` James W. Hong
0 siblings, 0 replies; 5+ messages in thread
From: James W. Hong @ 1994-05-15 18:46 UTC (permalink / raw)
In article <2qvu76$3og@paperboy.osf.org>,
Weidong Wang <wwang@down.osf.org> wrote:
>In article <2qtlo3$qce@falcon.ccs.uwo.ca>, jwkhong@csd.uwo.ca (James W. Hong) writes:
>|> This may be a dumb question but I was wondering if someone could tell me
>|> how I can define multiple interfaces for a single server application.
>|> Examples I have seen so far only allows a single interface to be defined.
>|> I am currently using AIX DCE version 1.1.
>|>
>
>Just do it. Just as how you set up your first interface (rpc_server_register_if,
>inq_bindings, register_auth_info, rpc_ep_register, rpc_ns_binding_export, etc),
>then before you call rpc_server)listen, set up another interface. Then set up
>your third interface, .... After you are done with interfaces you want, finally
>you call rpc_server_listen.
>
>Weidong Wang
>DCE Systems Engineering, OSF
Thanks for the suggestions.
I found the bank example provided with the AIX DCE distribution quite helpful
(somehow I missed that initially).
The trick is to define interfaces in separate IDL files, compile them, and
in the server initialization register the end points using the same binding
vector and export the interfaces using the same entry name.
James
^ permalink raw reply [flat|nested] 5+ messages in thread