def connect(self):
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<EOL>self._socket.settimeout(self._connect_timeout)<EOL>SocketError.wrap(self._socket.connect, (self.host, self.port))<EOL>self._socket.settimeout(None)<EOL>self._socket_file = self._socket.makefile('<STR_LIT:rb>')<EOL>
Connect to beanstalkd server.