Wire protocol discovering

Hi Fellow Ethers,

I am trying to play around with the network ,
here I have some issue that maybe is a typo
or my lack of understanding:

In that wire protocol description:

https://github.com/ethereum/wiki/wiki/[English]-Wire-Protocol

I am using java to send some packets back and forth (connecting to 54.204.10.41:30303) :

the question is why I am always getting the hello packet:

22 40 8 91 0 0 0 79 f8 77 80 9 80 ad 45 74 68 65 72 65 75 6d 28 2b 2b 29 2f 5a 65 72 6f 47 6f 78 2f 76 30 2e 34 2e 30 2f 6e 63 75 72 73 65 73 2f 4c 69 6e 75 78 2f 67 2b 2b 7 82 76 5f b8 40 51 43 fe d4 f8 17 79 80 5 c3 54 2d bb 30 54 7c 8 90 86 b6 17 f2 b5 26 f0 7e f1 67 95 47 3f 79 4b d0 1c 82 5a 7d 60 e1 52 3 85 a7 f4 7a 34 1e 44 14 27 d5 c3 b2 b8 bf 12 c 9f 1 ff 2b a5 f9


even if I am sending the ping packet: [0x22400891000000028102]
or the peer list packet: [0x224008910000000110]





Comments

  • ThreeIfByAirThreeIfByAir Member Posts: 4
    My understanding -- and I'm a noob about this so I could be wrong -- is that both sides always start by sending a hello packet. You should not expect the packet flow to be synchronous (I send something, you reply, I send something more, etc.) but instead treat all incoming packets as essentially asynchronous. If they need a reply, queue one up to be sent; if they're a reply to something you sent, let the thread that asked for it know; if they're just new information, deal with it.

    If you're expecting something like HTTP or SMTP where one side talks and then the other side replies... sorry, this is a different animal.
  • romanmromanm Member Posts: 37
    Ok figured it out it was my "send" mistake,
    I hope somebody can erase this topic...
Sign In or Register to comment.