Results 1 to 2 of 2

Thread: how can i get peer ip_address in server side?

  1. #1
    socketref is offline Registered User
    Name: bin.zhang
    Organization: sohu
    Project: Gps Navi Device
    Join Date
    Sep 2005
    Location
    china shanghai
    Posts
    7

    Wink how can i get peer ip_address in server side?

    as topical , i need know which connection ip_address came in ,

    python code as following:
    --------------------
    def RegisterFDC(self, ident, _ctx=None):
    try:
    _ctx.conn.xx # here i want to get conn's ip_address,but i can't found any method
    #do ip_address check ....
    fpc = FrontDispatchControllerPrx.checkedCast(_ctx.conn.c reateProxy(ident))
    except:
    print 'RegisterFDC exception occurred!'
    return False
    return True
    bin.zhang
    http://www.cppblog.com/socketref
    Tcp/Ip,C++

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    What do you want to know this for? You cannot directly get that information. For debugging information you can call toString() on the connection. On the server side you can get the connection by looking at current.con. On the client side you can get the connection (if any) by calling ice_connection() on the proxy.
    Last edited by matthew; 05-12-2006 at 02:30 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Peer to Peer problem
    By CharlesHan in forum Help Center
    Replies: 7
    Last Post: 07-31-2007, 12:01 AM
  2. Client side invocations from a Server app.
    By vincei in forum Comments
    Replies: 3
    Last Post: 07-04-2007, 09:27 AM
  3. Question regarding IceBox / server side
    By ctennis in forum Help Center
    Replies: 5
    Last Post: 03-08-2006, 09:27 AM
  4. Server-side throughput performance measures?
    By SteveWampler in forum Help Center
    Replies: 3
    Last Post: 08-31-2004, 06:53 PM
  5. Peer-to-peer over VPN connections
    By rhochmuth in forum Help Center
    Replies: 2
    Last Post: 02-13-2004, 07:13 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
  •