h2o/picotls

Knowing handshake state

gmusjha opened this issue · 1 comments

I am trying to follow cli example available in t directory. I want to send application data. I see two problems

  1. In handle connection I do not know when the handshake is done and it is time to send app data.
  2. In the example I see a method send_fully. But I get a linker error.

Your thoughts will be appreciated.

With my experiment I found:

  1. Use ptls_handshake_is_complete function.
  2. ptls_send works fine. No need for send_fully.