Use a connection module for socket data handling