[gnet] Get Remote IP address from a GTcpSocket
- From: "Niranjan Gopalakrishnan" <ngopalak o1 com>
- To: <gnet lists gnetlibrary org>
- Subject: [gnet] Get Remote IP address from a GTcpSocket
- Date: Tue, 27 Jul 2004 16:17:44 -0700
Hello everyone,
Is there a way to get the remote IP address in canonical form (dotted string) from a GTcpSocket ?
I currently do -
GTcpSocket *socket;
...
gnet_inetaddr_get_canonical_name(gnet_tcp_socket_get_remote_inetaddr(socket))
...
Often this is not properly null terminated and has trailing characters. Is there a better way?
GConn->hostname was perfect but I dont use GConns anymore.
Thanks for your time~
-G
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]