RE: [gnet-dev] GNet 2.0 Win32 plan and multi-watch issue



On Thu, 15 May 2003 martyn 2 russell bt com wrote:
> > > If anyone has any pressing issues with gnet 1.1.x on win32
> > (other than
> > > above) that need to be fixed let me know.
>
> Currently I have to do this (below) with GNET v1.x on Windows, is this fixed
> in v2.x?
>
> #ifndef WIN32
>   hostname = gnet_inetaddr_get_host_name();
> #endif

1.1 had gethostname, 2.0 has get_host_name.  There's a Win32 version of
gethostname in 1.1.


> #ifdef WIN32
>   if((ch = gnet_tcp_socket_get_iochannel(ts)) == NULL)
> #else
>   if((ch = gnet_tcp_socket_get_io_channel(ts)) == NULL)
> #endif

Win32 get_io_channel is in 2.0.  In 1.1, get_iochannel refs the channel
before returning it.

Are you trying to use 1.1 for Win32 and 2.0 for Unix?

David


-- 
David Helder - dhelder umich edu - <http://www.eecs.umich.edu/~dhelder>




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