Re: [gnet] IP address of a TCP client



Yes, use gnet_tcp_socket_get_inetaddr()

David


On Fri, 21 Sep 2001, Olivier Michel wrote:

> Hello,
>
> How is it possible with gnet to know the IP address of a remote client
> connecting to a server via a TCP socket ?
> In SDL_net, there is a very handy function for this:
> SDLNet_TCP_GetPeerAddress(TCPsocket sock);
> Is there any equivalent function in gnet ?
>
> Thanks,
>
> -Olivier
>
> _______________________________________________
> gnet mailing list
> gnet gnetlibrary org
> http://www.gnetlibrary.org/mailman/listinfo/gnet
>

-- 
      __          _    __ David Helder - dhelder umich edu
  ___/ /__ __  __(_)__/ / <http://www.eecs.umich.edu/~dhelder>
 / _  / _ `/ |/ / / _  /  Jungle Monkey: <http://www.junglemonkey.net>
 |_,_/|_,_/|___/_/|_,_/   Paper CD Case: <http://www.papercdcase.com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]