RE: [gnet] Problem using GConn under Win32 (MinGW)



 

> 
> -----Original Message-----
> From: Andrewlanoix aol com [mailto:Andrewlanoix aol com] 
> Sent: jeudi 4 septembre 2003 0:32
> To: laurent willemet skynet be; gnet gnetlibrary org
> 
> Laurent,
> 
> What version of GNet are you using? gnet-2.0.4.tar.gz, 
> gnet-src-2.0-20030531.zip, or source from CVS?
> 

I am using tow copies of gnet 2.0.4.tar.gz ; one copy is compiled under
linux, the other one is compiled under Win32-MinGW.
I don't know where to find the CVS (... and would like to :-)).
Gnet-src-2.0-20030531.zip are older, so I did not try them.

> What are the command line parameters that you are passing to 
> echoclient-gconn.c? What server (asyc, gconn etc) are you 
> using with it and what parameters are you passing to it? 
> What operating system is the client on? What operating system 
> is the server running on? Did you try the exact same 
> parameters with both the client and server on Linux?
> 

Here is a more complete report.

The linux box has address 192.168.1.3, the windows box 192.168.1.4.

#1 - Connecting linux-gconn-client to linux-"simple"-server, then typing
"Hello World" (to try echoing)

  linux-"simple"-server : 

    [lw poseidon examples]# ./echoserver 5555     
    Normal echoserver running on 0.0.0.0:5555
    Accepted connection from 192.168.1.3:1794
    Hello world                                   
    Connection from 192.168.1.3:1794 closed

  linux-gconn-client : 

    [lw poseidon examples]# ./echoclient-gconn 192.168.1.3 5555
    Hello world
    Hello world


Everything behaves like expected.


#2 - Connecting win32-gconn-client to linux-"simple"-server (all things
being equal, except the operating system of the client, and the fact that
the client and the server run on two boxes having different IP addresses)

  linux-"simple"-server :

    [lw poseidon examples]# ./echoserver 5555
    Normal echoserver running on 0.0.0.0:5555
    Accepted connection from 192.168.1.4:1392

  win32-gconn-client : 

    lw HERMES /g/lang/gnet-2.0.4/examples
    $ ./echoclient-gconn.exe 192.168.1.3 5555
    Connection timeout

The server detects the establishment of a connection, but after 30 seconds,
the client reaches the timeout.


> Did you know that there is a 30 second timeout set in the client?
> gnet_conn_timeout (conn, 30000);  /* 30 second timeout */
> 

Yes I am aware of it. During its execution, the client is notified of a
timeout event.

> If none of the above works, please try a version of glib that 
> I built, (which should be no longer necessary with Tor's 
> 2.2.3 binaries that I have yet to try.) 
> http://www.gnetlibrary.org/win32/glib-2.2.1-bin-AJL.zip
> 

I am using Tor's glib 2.2.3 binaries.

> I am the person to notify of issues with GNet on Win32 or 
> Glib iochannel problems on Win32.
> 

Maybe an iochannel problem under Win32... But who knows... It's hard to
figure out for me, as I am not used to the io part of Glib.

Thanks Andy,

Laurent Willemet.

> Andy Lanoix
> 
> 
> In a message dated 9/1/2003 11:32:31 AM Eastern Daylight 
> Time, laurent willemet skynet be writes:
> 
> > 
> > 
> > Hi,
> > 
> > I cannot establish a connection to a remote server through Gconn, 
> > under a
> > Win32 environment. The echoclient-gconn.exe program in the 
> examples/ 
> > directory is an instance of this problem. The program ends with a 
> > "Connection timeout" error message.
> > 
> > I have not put all my energy for fixing this problem (yet). 
> Instead, I 
> > ask for your advice.
> > 
> > My bet is that there is a problem in the Windows port of 
> glib (version 
> > 2.2.3). If this is the case, I'd like to isolate the faulty 
> portion, 
> > and fix it, or ask for help in the glib mailing list.
> > 
> > Any comment ?
> > 
> > Laurent Willemet.
> > 
> > 
> > _______________________________________________
> > gnet mailing list
> > gnet gnetlibrary org
> > http://www.gnetlibrary.org/mailman/listinfo/gnet
> 




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