wolkykim / libasyncd

Libasyncd is an embeddable event-based asynchronous Message/HTTP server framework for C/C++.
http://wolkykim.github.io/libasyncd/
Other
174 stars 36 forks source link

get visitor ip address #31

Closed levidurfee closed 8 years ago

levidurfee commented 8 years ago

Is there a way I can access the IP address of the visitor? I've looked and looked, but don't see a way.

Thanks!

wolkykim commented 8 years ago

I've just added a new function for this purpose. Please try ad_conn_get_socket() to retrieve the socket associated with a connection.

http://wolkykim.github.io/libasyncd/doc/html/ad__server_8c.html#a5ba67b542d4ba48ad4a25280d10ef86f

levidurfee commented 8 years ago

Thanks so much!