This function will be called each time a controlflow state changes, i.e. the socket is available for reading or writing.
See Implementation
This function will be called each time a controlflow state changes, i.e. the socket is available for reading or writing.