View Full Version : problem with genericip server example
mhwlng
January 30th, 2005, 09:16 AM
I've been playing with the genericip example, but can't make the server part work.
* connecting to it works
* after that, the salt is sent to the client ok:
-- Send the salt.
gip.Send(socket, code .. '\n')
* then the client receives the salt and sends the md5 string back
this never arrives in the server (i.e. ServerCB is not called again)
am I doing something stupid or is this a bug ?
Marcel
Ron
January 31st, 2005, 12:31 PM
I am checking this now, it did work before...
Ron
January 31st, 2005, 01:24 PM
When I am testing here I do not see this bug... Are you using two instances of G4?
mhwlng
February 1st, 2005, 02:48 AM
Are you using two instances of G4?
no...
I test various internet event server clients that work with g3...
Marcel
Ron
February 1st, 2005, 09:46 AM
Make sure you end all sends with a '\n'.
mhwlng
February 2nd, 2005, 01:42 AM
Hi Ron,
the \n is not the problem
The problem is that ServerCB is not called again after the salt is received.
The client sends the md5 but ServerCB is not called...
Marcel
Ron
February 2nd, 2005, 10:44 AM
A reason why it is not being called could be the \n... the callback is ONLY called if a full line is received.
Can you tell me EXACTLY what program you are using to test this? Give me the exact recipe how to recreate this. I tested here with 2 G4 talking to eachother and that works.
mhwlng
February 3rd, 2005, 01:50 AM
Can you tell me EXACTLY what program you are using to test this
netremote and a visual basic client
neither of them sends a \n after the md5 string....
this is the vb code (that works in G3)
Set m = New cMD5
s = m.MD5(Left(retstring, 4) & ":" & vPassword)
Set m = Nothing
Winsock1.SendData CStr(s)
I used a protocol analyser and neither does netremote...
also some Netremote data (e.g. images or multi-line data ) contains binary data and \n characters all over the place , so requiring a \n ONLY at the end will be problematic
Marcel
Ron
February 3rd, 2005, 09:50 AM
It needs the \n after the md5 string. For the binary data I'll add a special mode.
- Ron
mhwlng
February 3rd, 2005, 09:58 AM
It needs the \n after the md5 string
I don't have the source code to netremote, so there's not much I can do there....
Marcel
Ron
February 3rd, 2005, 09:59 AM
Don't worry about netremote, I know the developer :-)
mhwlng
February 5th, 2005, 09:05 AM
It needs the \n after the md5 string
after modifying my vb client, it can now connect to G4...
(the perl client that I use already sends \n so it needed no modification)
For the binary data I'll add a special mode.
I assume that you haven't added it to girder4-a5.exe yet ?
At least, I can't find it :D
Don't worry about netremote, I know the developer
Any idea, when Ben will produce a NR version that includes the \n ?
Marcel
Ron
February 5th, 2005, 11:44 AM
No that mode has not been added yet. I need to talk to Ben on how we should do this.
I do not know when Ben will get around to that. I'll give him a call.
Ron
February 5th, 2005, 11:52 AM
Ben said he will be doing this very soon, I am not sure when the release will be though.
Ron
February 7th, 2005, 08:50 AM
I think Ben and I will probably be writing a separate plugin for the Netremote-Girder interaction.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.