Add socket's class variables.