Re: [gnet] Win32 wierdness



argh, didnt know i had to define GNET_EXPERIMENTAL
compiles fine now. Echoclient doesnt connect unless its set to normal. Echoserver acts like its supposed to (i believe). Cept for the odd always reporting connections as from 204.204....

Echoserver is written such that it only accepts --async or --object if there is a port # supplied,
this doesnt look intentional.  Fooled me for a couple minutes.

We'll have to investigate our code a bit more.

-Adam



Adam Gifford wrote:

Aron was looking into this for me, but he hasnt got a windows box.
My machine specs: windows 2000-sp2, visual studio 6-sp5, platform sdk oct 2002

The symptoms are:
gnet_conn_write( subscription->conn->conn, con.buf->str, con.buf->len, 0 );

works the first time, after that it doesnt do anything. Setting a timeout leads to the timeout
being hit and the handler called.

Yes, using Tor's glib & other libraries he supplies.

I can't get echoserver to compile on my machine under visual studio. The object part of it gets a lot of complaints for syntax errors,
if i strip that out the normal & async parts compile.
The behavior of echoserver async /normal is incorrect for the ip/port the connections come from. Async echoserver running on 0.0.0.0:44444 Accepted connection from 204.204.204.204:52428

Whether i telnet localhost 44444 or telnet to my machine from another machine it displays 204.204.204.204:52428 which seems incorrect.

The errors I get when trying to compile stock echoserver.c :
Compiling...
echoserver.c
c:\agifford\gnet_test\echoserver.c(425) : error C2143: syntax error : missing ')' before '*' c:\agifford\gnet_test\echoserver.c(425) : error C2143: syntax error : missing '{' before '*' c:\agifford\gnet_test\echoserver.c(425) : error C2146: syntax error : missing ';' before identifier 'status' c:\agifford\gnet_test\echoserver.c(426) : error C2143: syntax error : missing ';' before '*' c:\agifford\gnet_test\echoserver.c(426) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *' c:\agifford\gnet_test\echoserver.c(426) : error C2146: syntax error : missing ';' before identifier 'user_data'
c:\agifford\gnet_test\echoserver.c(426) : error C2059: syntax error : ')'
c:\agifford\gnet_test\echoserver.c(427) : error C2143: syntax error : missing ')' before '*' c:\agifford\gnet_test\echoserver.c(427) : error C2143: syntax error : missing '{' before '*' c:\agifford\gnet_test\echoserver.c(427) : error C2146: syntax error : missing ';' before identifier 'status' c:\agifford\gnet_test\echoserver.c(428) : error C2059: syntax error : 'type'
c:\agifford\gnet_test\echoserver.c(429) : error C2059: syntax error : ')'
c:\agifford\gnet_test\echoserver.c(432) : error C2143: syntax error : missing '{' before '*' c:\agifford\gnet_test\echoserver.c(440) : error C2065: 'GServer' : undeclared identifier c:\agifford\gnet_test\echoserver.c(440) : error C2297: '*' : illegal, right operand has type 'int *' c:\agifford\gnet_test\echoserver.c(450) : warning C4013: 'gnet_server_new' undefined; assuming extern returning int c:\agifford\gnet_test\echoserver.c(450) : error C2065: 'ob_server_func' : undeclared identifier c:\agifford\gnet_test\echoserver.c(450) : warning C4047: '=' : 'int *' differs in levels of indirection from 'int ' c:\agifford\gnet_test\echoserver.c(466) : error C2143: syntax error : missing ')' before '*' c:\agifford\gnet_test\echoserver.c(466) : error C2143: syntax error : missing '{' before '*' c:\agifford\gnet_test\echoserver.c(466) : error C2146: syntax error : missing ';' before identifier 'status' c:\agifford\gnet_test\echoserver.c(467) : error C2059: syntax error : 'type'
c:\agifford\gnet_test\echoserver.c(467) : error C2059: syntax error : ')'
c:\agifford\gnet_test\echoserver.c(489) : error C2143: syntax error : missing ')' before '*' c:\agifford\gnet_test\echoserver.c(489) : error C2143: syntax error : missing '{' before '*' c:\agifford\gnet_test\echoserver.c(489) : error C2146: syntax error : missing ';' before identifier 'status' c:\agifford\gnet_test\echoserver.c(490) : error C2059: syntax error : 'type'
c:\agifford\gnet_test\echoserver.c(490) : error C2059: syntax error : ')'
c:\agifford\gnet_test\echoserver.c(531) : warning C4013: 'gnet_server_delete' undefined; assuming extern returning int
Error executing cl.exe.

gnet_test.exe - 26 error(s), 3 warning(s)

These don't make any sense to me as the code looks fine. It looks like it thinks GServer is something else.

Any Help would be appreciated.

-Adam


Andrewlanoix aol com wrote:

Aron,

Did you compile glib yourself or did you use Tor’s glib-2.2.1.zip? Can you try the following using the gnet example programs on your machine?

Command Prompt 1:
echoserver --object 3030

Command Prompt 2:
echoclient localhost 3030

What you type in command prompt 2 should echo back from the server and be reprinted right below what you typed. If this works for you then I will need you to send me a code sample that shows your problem.
Thanks,

Andy



In a message dated 4/4/2003 1:52:42 PM Eastern Standard Time, arubin atl lmco com writes:

succesful but subsequent writes never happen. The conn->func callback is never even called for the subsequent messages and the messages do not reach the client). Also note everything is honky dory on Linux and Solaris. Any help would be appreciated.

Aron

--

scp aron rubinium org:/dev/brain | grep ^work:

Aron Rubin                       Member, Engineering Staff
Lockheed Martin                  E-Mail: arubin atl lmco com
Advanced Technology Laboratories Phone:  856.338.4270
1 Federal St A&E 2W              Fax:    856.338.4121
Camden NJ USA 08103              Web:   http://www.atl.lmco.com

_______________________________________________
gnet mailing list


_______________________________________________
gnet mailing list
gnet gnetlibrary org
http://www.gnetlibrary.org/mailman/listinfo/gnet



_______________________________________________
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]