I am running Python for S60 V 1.4.2 and am attempting to run a python script that opens a socket and then set socket settings:
listenSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
listenSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
The script runs fine on the desktop, but errors when I run it on the phone with the following message:
AttributeError: 'module' object has no attribute 'SOL_SOCKET'
Do I need to install or modify something in the socket module to set the socket option on the phone?