set up a configuration structure for the socket

activate / deactivate the callback for the needed purpose, decreasing
the thread switch for unused callbacks.
fix the uninitialised values of the parser