Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-12-2006
socketref socketref is offline
Registered User
 
Name: bin.zhang
Organization: sohu
Project: Gps Navi Device
 
Join Date: Sep 2005
Location: china shanghai
Posts: 5
Send a message via MSN to socketref Send a message via Skype™ to socketref
-->
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++
Reply With Quote
  #2 (permalink)  
Old 05-12-2006
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
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 03:30 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding IceBox / server side ctennis Help Center 5 03-08-2006 10:27 AM
OutOfMemoryError Exception in the client side lucsat Help Center 4 01-03-2006 08:20 AM
Get information from the other side aroan Help Center 1 12-27-2004 01:32 PM
Server-side throughput performance measures? SteveWampler Help Center 3 08-31-2004 07:53 PM
Peer-to-peer over VPN connections rhochmuth Help Center 2 02-13-2004 08:13 AM


All times are GMT -4. The time now is 12:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.