Add accept() and listen() to Socket class.