Refactorize SocketAttributes