Re: [gnet] how to get *server* ip address?



On Sat, 11 Jan 2003, Axel Bock wrote:
> isnt it possible to determine the address a connection is set up to? I
> mean, the client HAS already connected, I'm already transferring data,
> so I think there has to be a way to figure out on which IP he connected
> me?

Sure, you'd call getsockname(), but we don't have an function for that.
I can easily add a gnet_XXX_socket_get_interface(XXXSocket*).  (or
get_local_address?  is there a better name for this).

David


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




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