Posts

Showing posts from August, 2018

How to create a file transfer program using python 3.0 or above.

Image
Based on the previous tutorial of how to create a chat program using python. This tutorial will be very similar and will use somewhat the same logic and flow of code. Flow of code Server : The server will host the network using the assigned host and port using which the client will connect to the server. The server will act as the sender and the user will have to input the filename of the file that he/she would like to transmit. The user must make sure that the file that needs to be sent is in the same directory as the "server.py" program. Client: The client program will prompt the user to enter the host address of the server while the port will already be assigned to the port variable. Once the client program has connected to the server it will ask the user for a filename to be used for the file that will be received from the server. Lastly the client program will receive the file and leave it in the same directory under the same filename set as the user. Se

How to create a chat program using python 3.0 or above

Image
If you're a beginner at programming and ever wandered if you could create a chat program using the little knowledge that you have then you are at the right place.This post will show you how a simple chat program can be created and developed over the course of time to function to perfection where a chat server would be handling clients and allowing them to chat either locally or over the internet. The components involved in this chat program The first version of the chat program is very basic and would only involve a single chat server and a chat client meaning that only two people would be able to chat with each other simultaneously.  Client program Server program How the programs will function ( Flow of Code ) Connection  The server program will host on the local computer on a dedicated port after which the client program will prompt the user to input the server address so it can connect to the server on the dedicated server address and assigned port.