mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 13:09:02 -04:00
Setting the handle callback allows your application to take care of network events for the connection. Look at the connection state and flags to determine if read/write is possible and go from there. See kore_connection_handle() for more details.
Kore NOHTTP example
Note that this example only works if Kore was built with NOHTTP=1.
Run:
$ kore run
Test:
Connect to the server using openssl s_client, you will notice
that anything sent is submitted back to your client.
$ openssl s_client -connect 127.0.0.1:8888