|
|
|
|||||
|
because i want send the client ip to another client , i want to use the server like a ip triangolator .
i obtain the ip of client call the current.con->toString() from a callback, have another idea? Last edited by Andrew : 04-16-2008 at 09:08 AM. |
|
||||||
|
What does the other client do with the IP address? If you want the two clients to communicate with each other directly, then the usual way to do this is to send a proxy from one client to the other over the server. The proxy embeds the IP address and any additional information that is required to reach the client.
|
|
|||||
|
i have patch the source code of Glacier2 :
in SessionRouterI.cpp: function : virtual void createSession() I add that: Code:
string str(_current.con->toString());
string key("remote address = ");
size_t start(str.rfind(key));
if(start != string::npos)
{
str = str.substr(start + key.length());
str = str.substr(0, str.find_first_of(":")) ;
}
else
str = "";
map<string, string> contextMap;
contextMap["remote"]=str;
_sessionRouter->_sessionManager->create_async(new CreateCB(this), _user, _control, contextMap );//_current.ctx);
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A problem of glacier2router | GlacierX | Help Center | 17 | 01-29-2008 12:34 PM |
| Bug of Glacier2Router | GlacierX | Bug Reports | 5 | 04-11-2007 06:00 AM |
| How to get client's ip address when I use Glacier? | ewiniar | Help Center | 2 | 06-16-2006 06:55 AM |
| Can Ice server get the ICE client's IP? | richardma | Help Center | 1 | 12-23-2005 09:05 AM |
| How to get client's IP address | zephyr007 | Help Center | 4 | 12-28-2004 10:58 AM |