'int' object has no attribute 'send'
<p>Some advice was given here</p>

<p><a href="http://stackoverflow.com/questions/13569044/python-sockets-use-function-instead-of-global-socket-call">Python Sockets use function instead of global socket call</a></p>

<p>and I thought it was working but now seems to not be any ideas on how to make the following code work?</p>

<pre><code>def testMethod():
    socks = {}
    socks['i'] = createConnection(host, port)
    socks['i'].send("Hello  world")
    print "Sent Hello World"
</code></pre>

<p>This is the error message I get</p>

<pre><code>'int' object has no attribute 'send'
</code></pre>

<p>*cheers</p>

<p>and ty for any advice</p>
