parameters: (address)
return_statement: return conn
docstring: Return a connection object connected to the socket given by `address`
docstring_summary: Return a connection object connected to the socket given by `address`
docstring_tokens: Return a connection object connected to the socket given by address
function: def SocketClient(address):
      '''
      Return a connection object connected to the socket given by `address`
      '''
      family = getattr(socket, address_type(address))
      t = _init_timeout()
  
      while 1:
          s = socket.socket(family)
          s.setblocking(True)
          try:
              s.connect(address)
          except socket.error, e:
              s.close()
              if e.args[0] != errno.ECONNREFUSED or _check_timeout(t):
                  debug('failed to connect to address %s', address)
                  raise
              time.sleep(0.01)
          else:
              break
      else:
          raise
  
      fd = duplicate(s.fileno())
      conn = _multiprocessing.Connection(fd)
      s.close()
      return conn
function_tokens: def SocketClient ( address ) : family = getattr ( socket , address_type ( address ) ) t = _init_timeout ( ) while 1 : s = socket . socket ( family ) s . setblocking ( True ) try : s . connect ( address ) except socket . error , e : s . close ( ) if e . args [ 0 ] != errno . ECONNREFUSED or _check_timeout ( t ) : debug ( 'failed to connect to address %s' , address ) raise time . sleep ( 0.01 ) else : break else : raise fd = duplicate ( s . fileno ( ) ) conn = _multiprocessing . Connection ( fd ) s . close ( ) return conn