[Jsonrpc-cpp-devel] how can I obtain client IP ?
Brought to you by:
s-vincent
From: Alexander V. <vav...@ma...> - 2010-04-15 11:35:08
|
I started JSON RPC TCP server, another JSON RPC client connected to the server. How can server obtain an IP address of connected client? As I see It's impossible: in function TcpServer::Accept call to "accept()" with sockaddr parameter set to 0 and no information about client has stored in list except of client's connected socket descriptor. May be I can fix this shortcoming ? I wish to store in list not only socket descriptor but client IP address. Thanks in advance, Alexander. |