Continuing from the question mentioned in the below link
list/array of sockets in python
Is it possible to create an array of sockets in python like
list=[socket0, socket1, socket2, socket3 ]
for i in range(0,3):
list[i]=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
list[i].connect((host,port[0]))
I tried this but I'm getting the same error as I have posted in the link that no attribute recv.
Is it possible to create an array like this in python. I know it's possible in C.