Am Mittwoch 06 Mai 2009 um 08:14PM schrieb "Krzysztof Godlewski" 
<[email protected]>:
>I implemented this using TServerEventHandler:
>  * there's a static map that holds client addrs: map<unsigned long,  
>string>
>  * client addresses are added to a map in MyHandler::clientBegin(),  
>pthread_self() is the key in address map

That sounds like a great idea. But how do you get the client's IP in 
clientBegin()?
I tried to cast the input or output parameter to a TSocket and call 
getPeerAddress() but it returns an empty string only.

Patrick

Reply via email to