Chat Servers Using Multi-threading
Two Operating Systems to act as Client Server and Host Server. These severs be fed with a python code to communicate with each other. Using the concept of multi-threading, the python code runs simultaneously in both the systems.
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
ip = “188.8.131.52”
port = 3000
s.bind( (ip,port) )
print(“linux : “+data.decode())
t1 = threading.Thread(target = t)
t2 = threading.Thread(target = t)
t3 = threading.Thread(target = t)
Visit https://github.com/abhiroopbasak/python/blob/master/chat_server for more information.
Thank you for reading!