Call Socket._connect() in Socket.connect() .