From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9ba4,4dd6f37ca3b862fe,start X-Google-Attributes: gidf9ba4,public X-Google-Thread: f678f,f3f0704af44fb2e6 X-Google-Attributes: gidf678f,public From: rahman@dhaka.pilgrim.umass.edu (Mustafizur Rahman) Subject: Re: using rpc_serv...all_protseqs; cdsping shows two listenings, ok ? Date: 1995/03/30 Message-ID: <3lf99t$81p@kernighan.cs.umass.edu>#1/1 X-Deja-AN: 100530365 distribution: world references: <3l9hmq$mo9@cnj.digex.net> <3lbjb6$8vs@leonardo-da-vinci.infogest.cu.lu> followup-to: comp.soft-sys.dce organization: University of Massachusetts, Amherst, MA 01003 keywords: rpc reply-to: rahman@pilgrim.umass.edu newsgroups: comp.unix.osf.misc,comp.soft-sys.dce In article <3lbjb6$8vs@leonardo-da-vinci.infogest.cu.lu>, poleur@crpcu.lu (Michel Poleur) writes: |>In article <3l9hmq$mo9@cnj.digex.net>, hashmi@cnj.digex.net (Atiqullah Hashmi) writes: |>>supports both udp and tcp we are using rpc_server_user_all_protseqs(). |>>Now the cdsping shows two lines that the application is listening. |>>Is that ok ? |>Yes, it's ok. There is one line for each listening entry: one for an UDP entry Yes. |>> How does the client then pick which one to use ? |>I think it's at random, but I'm not sure. It is "random" within the set of protocols both the client and the server machine supports. For instance, if you have a client which only runs DECnet then it will use the DECnet binding everytime provided the server also exports a DECnet binding among the others. |>>Any good/bad experiences with rpc_server_user_all_protseqs() ? |>If you only use the TCP protocol sequence, and your server dies, then the |>client RPC functions returned immediately (with status set). With UDP, there may |>be a little amount of time before the functions returned. Never had a problem since commercial DCE releases! It is best to use *all* the available protocols on the server side so that a client with a limited set of protocols has a better chance of finding a compatible binding. You still have the flexibility to choose the protocol on the client side if you wish - I would *never* hard-wire a specific protocol in mind you! - Mustie -- Mustafizur Rahman Internet: rahman@pilgrim.umass.edu OSF DCE Developer, Project Pilgrim A143B Lederle Graduate Research Center (413) 545-4701 University of Massachusetts (413) 545-2744 Amherst, MA 01003, U. S. A. Fax: (413) 545-1249