1 clean code
2 In order to avoid appearing too much in the function tcp_callback if statement, using the jump table