python - an integer is required (got type tuple) Error -



python - an integer is required (got type tuple) Error -

i recieving below error in python 3 idea?

clientdtsocket.send(bytes(filename,"utf-8"),("localhost",8101)) typeerror: integer required (got type tuple)

try calling clientdtsocket.sendto instead of clientdtsocket.send:

clientdtsocket.sendto(bytes(filename,"utf-8"),("localhost",8101))

more info these methods: https://docs.python.org/3/library/socket.html

python

Comments

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -