title: Test for any connection Python Socket Module
body: <p>Is there a way to check for a connection with the Python socket module?</p>
  
  <pre><code>while connection==True:
  </code></pre>
  
  <p>Something like that is what I am looking for, where connection is whatever the function would be for the module.</p>