implement the socket command of list.