All right you know beginning with the programming aspect of it working.
Right.
So when we come on to our project in that it runs Viken variety let me create a new package inside this
particular file so I'll create a package that we call the package as I'll call it as you know next week.
So I'm called the sprocket is networking inside networking.
I have a new python file.
Let me call it for now.
Try and right.
It's already a python file so I went and let me create a python file which is also called us.
So with a line inside the looking package.
Right.
So both of them are ready for me and I can start up right away to create a client and to create a server.
Ok.
Now coming to all client and client side coding in quited involves a few steps.
All right where the steps are as follows.
1 create a client socket.
Create a client's office.
Or rather it's just create a socket just create a socket know what does the socket socket is something
which which has which guns is solf
most IP address and port them.
So it is nothing but a socket is nothing but an application that is going to be active.
At a particular port of a device which is connected to the end of it.
Right.
So it consists of all of these things.
It says socket is nothing but something which consists of what IP address and port number rage is connected
to the Internet.
Along with that it's active at a particular point.
That's a socket right.
So Greetings then the second thing off the plating a socket if it is a client side code what you need
to do is connect connect the socket to Oh so the socket connect the socket which you have created do
a service like the connect communicate.
Right.
Maybe send maybe a receipt coming the kids fall off to you communicate or do you can do it.
So you create a socket you can make the socket so the socket you communicate with each other.
Right.
This the client talked to the service so we'll talk to the client and so on.
So they communicate now after the communication part comes you create you connect you communicate.
Then if you want to stop communicating with a server close your socket knows your suck.
That's it.
The steps declined.
Our friend Lisa now coming to the server right now.
Silverside requires a few more steps.
Create a socket is same server also requires to have a socket.
But this time I need to see bind the socket bind the socket to up put to killer to a particular port
number.
Why.
Because it can be convenient for different clients to connect to a particular port like say for example
if you're setting up shop somewhere right.
You will put it somewhere which is more accessible for multiple customers maybe maybe a grocery shop
maybe in a residential area or three can be somewhere near a public spot.
Right.
So you have something where you need to bind to bind the socket to a particular port number.
So you need to do that.
OK so you have to say OK my server socket is going to be bound to both AT&T or port number one two three
four or put number 80.
That's how each of the server sockets are bound to a particular port them up to you bind the socket
to a particular or the server has to listen for clients.
Right.
Let's say for example you set up shop somewhere and I'm setting up shop at a particular address what
if you close the shuttle and stay at home.
Is there any recall is there any use of the server or is there any use of the shop.
No there is used the shop only if after you open the shop you wait and listen for you wait and listen
for some kind of customers to come.
Right you're listening for our clients.
Now you listen for clients let's say a client connected a client connected to the server.
In this particular step right a line connected to the service or the minute a client connects the signal
must do our job of a set thing during the connection right excepting the connection if except it's in
all except the client connection.
So if you accept the particular client connection you know that client will connect to the server.
There will be something like You know it's something like this right.
You bet there is a particular power to.
How does the shopkeeper get back to the client.
OK that's it for example if you go to a restaurant the shopkeeper is the one who you know who is managing
everything.
OK.
And you want to eat food you go to one of the tables.
Ok you place the order while a waiter right.
It goes to the shop.
Then it goes to maybe though you know the guys make the food.
And then from there it comes back to you while away.
Right.
So when you accept the connection menu except the connection it's basically you are accepting one you're
accepting a particular you know a something like a means of communication yet accepting a connection
itself which means this connection is established until the connection is closed and people can keep
communicating with each other.
OK.
So this connection is established it's like a means of talking to each other that connection to the
stuff.
So you need to accept the connection.
Ok off accepting the connection to most things you know you need to communicate right up to communicating.
So send receive data.
They're communicating.
All I need to do is close the active connection close the active branch.
Right.
So let's say for example if there were many lines which are connecting which you're trying to connect
with so what do you have to accept each of the connections separately.
One or the other then OK you need to communicate with each connection individually wired different different
radios maybe but you need to communicate with each of them.
Right and then close the active or close all the active protections and up to closing all the active
connections you can close over.
You can close this up.
You're right.
OK.
So with this with this we understand the steps to create a client.
So now let's get into the programming aspect of.