Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: problem with genericip server example

  1. #1
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default problem with genericip server example

    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

  2. #2
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    I am checking this now, it did work before...
    Ron
    No support through PM

  3. #3
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    When I am testing here I do not see this bug... Are you using two instances of G4?
    Ron
    No support through PM

  4. #4
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    Are you using two instances of G4?
    no...

    I test various internet event server clients that work with g3...


    Marcel

  5. #5
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    Make sure you end all sends with a '\n'.
    Ron
    No support through PM

  6. #6
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    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

  7. #7
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    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.
    Ron
    No support through PM

  8. #8
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    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

  9. #9
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    It needs the \n after the md5 string. For the binary data I'll add a special mode.

    - Ron
    Ron
    No support through PM

  10. #10
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •