Socket Programming in Python | Basic Client Server architecture | Simple chat application

preview_player
Показать описание
In this tutorial, I will show you how to create a basic Socket Client- Server architecture using python programming language. We shall develop a basic chat application where client and sever can talk.
Implenmentation as below:

Server side:

1. Create socket using domain name and type and prorocol

2. bind with hostname and port no

3. Listen for incoming connections

4. accept connections, returns new socket obj and client address.

5 send message

6. receive msg

7. close socket

Client side:

1. create socket

2. connect to server using ip and port number

3. receive message

4. send msg

5. close socket

Please subscribe to my youtube channel for such tutorials

Please watch the split a file by line number here:

Split utility in Linux/Unix : to break huge file into small pieces

How to keep sessions alive in terminal/putty infinitely in linux/unix : Useful tips

Random value generator and shuffling in python

Intro to class in python

Lists, tuples, dictionary in python

Python basic tutorial for beginners

Python basics tutorial for beginners part 2 -variables in python

Vi editor basic to advance part 1

Vi editor basic to advance part 2

Keyboard remapping in linux, switching keys as per your own choice

How to install/open an on sceen keyboard in Linux/Unix system

Python IDE for windows , linux and mac OS

How to record screen or sessions in Linux/Unix

How to download and install PAGE GUI builder for python

Create a basic Login page in python using GUI builder PAGE

Working with RadioButton in python in PAGE builder

Basic program on Multithreading in python using thread module
Рекомендации по теме
Комментарии
Автор

Hi! nice tutorial, can you do a follow up by adding several functionnalities such as rooms, friendslist (add/delete friends), see when your msg is sent/read by your friend, notifications for new incomming msgs, and ability to send/receive images & videos and if you can, manage a bitcoin wallet, with of course possibility to send/receive btc

Also making a GUI (with PAGE) and make it available for all supports (pc/mac, smartphones)

that's what I'm currently trying to do but i'm not even sure Python is the best language to do that kind of project

Thx

kmzofficiel