1
I would like to make with a command of the server, was disconnected a client specific.
from socket import *
meuHost = ''
minhaPort = 50007
sockobj = socket(AF_INET, SOCK_STREAM)
sockobj.bind((meuHost, minhaPort))
sockobj.listen(5)
while True:
conexão, endereço = sockobj.accept()
print('Server conectado por', endereço)
while True:
data = conexão.recv(1024)
if not data: break
conexão.send(b'Eco=>' + data)
If there is this attribute "Accept", there is some way to get "Kickar" or disconnect a client from my server?
Python3 accepts variables with accent -- but that doesn’t mean you should use them ....
– jsbueno