From: jwade@austin.ibm.com (Jim Wade)
Subject: Re: DCE: Obtaining IP address
Date: Thu, 8 Sep 1994 20:24:47 GMT [thread overview]
Message-ID: <CvtvDC.141I@austin.ibm.com> (raw)
In-Reply-To: 34nap3$j1l@jupiter.cps.plnin.gmeds.com
Steve Melchert (smelch01@cps.plnin.gmeds.com) wrote:
: I would like to capture the IP address of a calling client from the
: server layer. I want this information so that I can store certain
: information related to specific IP's. Is it part of the context
: handle? Can it be captured?
: I have been told that there is no API to directly obtain this data.
: Does anyone have any idea how to capture the IP address from the server?
: Would like to avoid a lot of messy code if possible, as my product is
: to be cross-platform portable.
: Thanks for any input you can provide.
: Stephen Melchert
Steve,
You can use a combination of rpc_binding_server_from_client and
rpc_binding_to_string_binding to get the information according
to the documentation. The rpc_binding_server_from_client call
only provides a partially bound handle so you will not have
an endpoint for the client but you will have the IP address.
Hope this helps.
Jim
--
-------------------------------------------------------------------------------
| 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 |
-------------------------------------------------------------------------------
prev parent reply other threads:[~1994-09-08 20:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-09-08 15:31 DCE: Obtaining IP address Steve Melchert
1994-09-08 17:54 ` Jon Mauney
1994-09-08 20:24 ` Jim Wade [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox