Python socket - connected socket
<p>I'm currently coding a socket server in Python (VS2012 addon)
But I'm stuck and can't get a new socket from an accepted connection.</p>

<pre><code>while (True):
    new = sock.accept()

    acc_addr = new[1]
    ip = acc_addr[0]
    connid = acc_addr[1]

    print 'Received connection from ' + ip + ':' + connid.__str__()
</code></pre>

<p>This is what I use, but now I want a new socket() instance for the connected user for my other class (for receiving, sending etc), but how would I get the new socket() instance?</p>
