import socket
mySocket = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
mySocket.bind ( ( '', 2727 ) )
mySocket.listen ( 1 )
while True:
| channel, details = mySocket.accept()
| print 'We have opened a connection with', details
| print channel.recv ( 100 )
| channel.send ( 'Green-eyed monster.' )
| channel.close()
i tried copying and pasting this code from a tutorial into construct but i got this error:
Traceback (most recent call last):
File "<string>", line 1, in module>
File "C:\Python25\lib\socket.py, line 45, in <module>
importError: No module named _socket
my guess is that the socket library isn't available but then again, i don't know very much about the python language so please help! i wanna get construct up and running online YESTERDAY! =P