Chatroom Using Python Project Report
Chatroom Using Python Project Report
Ajay K Talele ; Bhagyadeep Jena, Ayush Kagane, Sameer Jamdar, Jason Shaji
ChatRoom
Department of Mechanical Engineering S.Y (2020-21)
Server Side Script
A thread is sub process that runs a set of commands The client side script will simply attempt to access the server
individually of any other thread. So, every time a user socket created at the specified IP address and port. Once it
connects to the server, a separate thread is created for that connects, it will continuously check as to whether the input
user and communication from server to client takes place comes from the server or from the client, and accordingly
along individual threads based on socket objects created for redirects output. If the input is from the server, it displays
the sake of identity of each client. the message on the terminal. If the input is from the user, it
We will require two scripts to establish this chat room. One sends the message that the users enters to the server for it to
to keep the serving running, and another that every client be broadcasted to other users.
should run in order to connect to the server.
This is the client side script, that each user must use in order
to connect to the server.
A. Testing
The Socket was tested and was found to be in working
condition and it was acting accordingly, and the final Socket
was found to be totally in the working conditions
B. Software used
The whole program is compiled on PyCharm and Run in
PyCharm Console.
III. LIMITATIONS
hostIp = "127.0.0.1"
portNumber = 7500
1. THE MAIN PURPOSE OF THIS PROJECT IS TO DEVELOP A
SECURE CHAT APPLICATION . clientSocket.connect((hostIp,
portNumber))
2. YOU CAN USE THIS APPLICATION VERY COMFORTABLY
AS WELL AS SMOOTHLY . while True:
clientMessage = input("Client says:
3 . WE HAVE USE PYTHON PROGRAMMING LANGUAGE IN ")
THE CODING OF THIS CHATROOM PROJECT .
clientSocket.send(clientMessage.encode("
utf-8"))
4. BASICALLY , THIS CHATROOM PROJECT PRESENTS A
serverMessage =
SOFTWARE APPLICATION FOR THE LAUNCHING OF A REAL
clientSocket.recv(2048)
TIME COMMUNICATION BETWEEN TWO USERS .
print("Server says: ",
serverMessage.decode("utf-8"))
5 . THIS SYSTEM IS DEVELOPED ON ANDROID WHICH WILL
ENABLE THE USERS TO COMMUNICATE WITH ANOTHER USERS clientSocket.close()
THROUGH TEXT MESSAGES WITH THE HELP OF INTERNET .
except error:
print(error)
CODE:-
Clientside script=from socket import * except KeyboardInterrupt:
print(KeyboardInterrupt)
clientSocket = socket(AF_INET,
SOCK_STREAM)
clientSocket.setsockopt(SOL_SOCKET,