def __init__(self,s,host,port): s.connect((host,port)) # Connect to the given server host and port sendmsg=Send(s) recvmsg=Recieve(s) sendmsg.start() recvmsg.start() sendmsg.join() recvmsg.join()
def __init__(self, s, host, port): s.connect((host, port)) # Connect to the given server host and port sendmsg = Send(s) recvmsg = Recieve(s) sendmsg.start() recvmsg.start() sendmsg.join() recvmsg.join()
def RecvMsg(self): r=Recieve(clientSocket=None,ServerList=self.clientSock,isServer=True) r.start() r.join()
def RecvMsg(self): r = Recieve(clientSocket=None, ServerList=self.clientSock, isServer=True) r.start() r.join()