partially refactored SocketLinkSession