Implemented: The constructor, connect(), and some of accept()