jsonrpc-cpp-devel Mailing List for JsonRpc-Cpp
Brought to you by:
s-vincent
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(2) |
Aug
(5) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
(3) |
Feb
(9) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(4) |
| 2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
|
3
|
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
|
11
|
12
|
13
|
14
|
15
(2) |
16
|
17
|
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
|
25
|
26
|
27
|
28
|
29
|
30
|
|
|
From: Sébastien V. <vi...@cl...> - 2010-04-15 15:17:40
|
Hi Alexander, Alexander Venin a écrit : > 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. > > You can get client's sockaddr by calling getpeername() on the socket descriptor. Regards, -- Seb > Thanks in advance, Alexander. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Jsonrpc-cpp-devel mailing list > Jso...@li... > https://lists.sourceforge.net/lists/listinfo/jsonrpc-cpp-devel > > |
|
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. |