Hello once again we're to learn about the networking aspect of things right now where networking plays
a very important part in programming.
When we come to go especially when we come to Internet of Things.
So so basically a lot of things which are network together one or the other or network together over
the Internet or the network together or were some local network and they talk to each other.
So what comes to your mind when you know the minute I say networking the minute I say networking maybe
something like maybe something like getting a network getting network to get though by a lot of people
you know being in touch with people communicating with people and to one sort of networking aspects
which come to your mind.
So networking can be social networking where you have whatsapp Facebook or you know or you know Linked-In
where you have something something more more sophisticated for with respect to your work profile.
Right.
So you have different types of network which you can think.
Now when it comes to networking with regards to with regards to computers what are we talking about
working here networking.
You know we say is basically connecting to computers to things to devices anywhere in the world with
each other over some kind of an interface or some you know somebody who's there as an arbitrator in
the.
And that's what you do.
And that exactly is what we call about network.
Right.
OK so now let's say for example it's let's say we're going to have let's let's understand the most of
one of the most popular things about networking.
I just focus today on messaging.
OK.
Our chatting as you can think about messaging is with respect from one computer to another computer.
All respect to one device to another device.
That's what exactly chatting or messaging would be all about.
Let's say for example you were locked in your whatsapp is on your phone and you would say hi to your
friend.
So let's say Ex-White said talks to ABC high sent from the phone of x y Zed to that high is being sent
as a message to phone or BBC sorry to X when it is sent from X Y Z to ABC right.
So if X Y Z it sends a message.
Hi It has to go to Easy's phone and it has to reach the application WhatsApp and it has to open up there.
Right now comes the question.
Are these two phones networked together.
You can say well perhaps.
Yeah.
They are actually communicating with each other fine.
What are they actually connected to each other.
No they are not connected to each other.
How are they connected to.
OK.
So let's say for example this is this is a smartphone which I've shown a where are we here.
There's a smartphone connected via the Internet.
Why the why or why it is connected to the Internet.
Another laptop is connected to the Internet.
So let's say this is x y Zed who is always logged in on the smartphone and this guy is the one who uses
let's say whatsapp or something like that where he gets his messages on his laptop.
OK.
So you're connecting with the Internet.
And you know this guy is connecting with the Internet and finally has to talk to this particular client.
Right.
OK.
Doctor this particular this particular device.
Now the most one of the most popular models which networking users Scarlet's the client server model
which we are going to discuss in detail as we go ahead.
All right.
I can understand a client server model very similar to up to a shopkeeper and a customer.
Right.
So let's say for example a shopkeeper is approached by custom MEURS customers can be many shopkeepers
one.
So shopkeepers can be approached by many customers and customers will request the shopkeeper for some
sort of some sort of you know some sort of data or some sort of not need of some sort of things that
you want to buy.
Let's say for example cross-city or you know something like fruit vegetables or something like that.
So quite a lot of things that you would want to ask for as a customer to the shop.
You've got to give the customer comes and gives a request to go or request to the shopkeeper that I
want this particular thing and the shopkeeper solves the custom.
Or you know give some kind of a response to the customer in such a way that why because shopkeeper has
a lot of resources with it.
Right.
Shopkeeper has a lot of resources with it.
So as you can see one of the one of the models that you know one of the one of the popular models of
client server which which we can deal with maybe something like this so there are many customers coming
up to this shopkeeper So the shopkeeper is equal in two or so.
OK.
And many customers coming to talk to.
Many clients coming to talk to the server they connect to the server.
They don't connect to each other.
They connect to the server server is a main shopkeeper which has some resources as you can see this.
This is a database symbol but this is a lot of resources with him where he can give a lot of data to
whoever whichever client request it for they can give the right.
So this is what the what the shopkeeper does what the server does.
So will give a response to our respective clients.
OK so when a client requests the server will give the server will give a particular response.
Right.
OK.
So that exactly is networking.
OK.
Now with regard to networking if you could you know so that it's actually that quick now see for example
if this client wants to talk to this claim OK if this client wants to talk to this client what will
it do.
It will talk to the server ask the server to talk to this claim.
And this client will get the information given by the skyline.
So they're not connected to each other directly but yeah.
Well actually yes they are connected.
They are networked by server.
So this is how the popular client server model works.
OK so now if you think about WhatsApp as a tool you say for example this was Client 1 where this is
WhatsApp on one and WhatsApp another.
Now if this guy wants to talk to this guy so what will he do.
It will send a message when that message is sent to the server when the message is sent to the server.
The civil rights of the Spawn's back to the client.
Boss Ive got your message right.