Results 1 to 2 of 2

Thread: how to capture the callee hostname/IP (IcePy)

  1. #1
    alexm is offline Registered User
    Name: Eskinder Alex Mesfin
    Organization: Medtronic, Inc.
    Project: www.medtronic.com
    Join Date
    Apr 2006
    Location
    In Minneapolis, Mn
    Posts
    16

    Question how to capture the callee hostname/IP (IcePy)

    Using the example in demo/callback for python, if I want to log every callers hostname or IP address, what routine/method do I need to invoke to get those information.
    Alex Mesfin
    Medtronic, Inc.
    www.medtronic.com

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    In your servant, you can obtain a description of the incoming connection like this:
    Code:
    def myOperation(current=None):
        if current:
            puts current.con.toString()
        else:
            puts "local invocation"
    Take care,
    - Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Capture Console Exit c#
    By BobCl in forum Help Center
    Replies: 13
    Last Post: 02-18-2011, 08:54 AM
  2. Replies: 2
    Last Post: 01-07-2011, 06:14 AM
  3. ICE SSL binding to DNS hostname
    By dhogan in forum Help Center
    Replies: 5
    Last Post: 02-12-2008, 12:54 PM
  4. how to capture the "client droped" exceptions?
    By Pierre.Siron in forum Help Center
    Replies: 2
    Last Post: 04-10-2007, 11:15 PM
  5. Potential getAddress error with unassigned hostname
    By rhochmuth in forum Bug Reports
    Replies: 5
    Last Post: 03-14-2006, 10:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •