From: mauney@tophat (Jon Mauney)
Subject: Re: DCE: Obtaining IP address
Date: 8 Sep 94 17:54:18 GMT [thread overview]
Message-ID: <mauney.779046858@tophat.mauney.com> (raw)
In-Reply-To: 34nap3$j1l@jupiter.cps.plnin.gmeds.com
smelch01@cps.plnin.gmeds.com (Steve Melchert) writes:
>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.
The Client's address is part of the binding handle delivered to
the server (assuming an explicit handle is delivered to the server).
This handle can be converted to a string binding using
rpc_binding_to_string_binding
and the string binding deconstructed using
rpc_string_binding_parse
Notice, though, that in the general case this is not guaranteed to
be an IP address, since the transport may have been something other
than an IP protocol. Portable code should take this into account.
--
Jon Mauney jon@mauney.com
Mauney Computer Consulting (919) 828-8053
Raleigh NC
"Have TGT, will travel."
next prev parent reply other threads:[~1994-09-08 17:54 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 [this message]
1994-09-08 20:24 ` Jim Wade
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