But let's say if I want to send it to.
OK.
So basically receive you know I need to start this thread to you start at the same time I need to send
data I need to keep doing sending data taking user input keep sending data.
So I can call sending data as my main as my main file in my main file I just call this method sending
it up.
That's my main thread and this is a part time thread which keeps going on in receipts.
Right.
But now comes the question.
All right so if that is the case if I ever receive data and if I was sending data but then I need to
keep doing that again and again and again and again which means the entire thing needs to happen again
and again which means it has to happen and why true because you can afford to make it happen only once.
Right.
So let's say over here to in while to say it here.
Correct.
So I save that and my client's side is done.
Now we need to have my service done for which I start my programming for the side.
So my Silverside First of all it has done my Except But again I do have two functions out here.
The Deaf receive handle and the part where receive data but where I could have a function.
OK.
From from the client I'm going to receive data.
OK.
And but this time I need to use kind not.
All right.
Concord RACV
and one of Raissi from corn I need to store it in a variable that we call it as we call it is data and
then whatever I get the data data that de-code okay or yeah that particular data I'll just print it
on the screen by saying this has come from the client come Monday.
Right.
And let's say def receive deal and then other one will be Sendero which can be Colligan and again again
as I told you both of them needs to happen many times hence you can have it and while true rate you
can keep happening that quite many times.
So insane data even though you want to keep happening again and again.
So while is true what do I need to do I need to take an input from the user.
I will wait there until I get an input from the user which I will take it in user underscoring what
I need to encode it and after encoding it.
I can send it as you know I can send it as bytes so I can do kind Dutch send all
user input done in code.
So I'll keep sending all this data again and again to the users that send all user input data in code.
So with this so we've done that the send data on the received the report.
And so what I get from the user.
But now I need to start with the thread as I told you so I need to create a thread but the thread which
means I need to import it from the trading post trade.
Right so I import trade and then using this trade I can with an object but the target can be again.
I want to receive data can happen keep happening from the client as a thread.
No arguments.
T t Roadstar.
Right after you start.
All I need to do is I need to call the send data Metford which is going to happen constantly in the
main in the main So main is having one.
And and these are happening at the same time.
So your client the server.
So we need to start up with it and let's see how things work.
OK.
So except and hopefully this should work.
And then let's go on with the running part of it let's say server control shipped 10.
So I run that server
so my servers running stranglings and for clients let me say I run the client and let's say this one
is control 10 to.
So my client is also running and it's connected to the server but it says oh received takes at least
one argument.
Also you have a problem out there.
So I'll stop all of them.
Let's stop lying.
And the server receives received received takes at least one argument and I think server side received.
Oh yeah.
You need to have this but then them should run correct.
OK so you didn't give the number of bytes.
All right so what we'll do is we'll put some debarking statements out here so so you can understand
exactly where we be
to post.
That's correct.
Server lessoning.
And so let me so don't except and the minute you accept let's print got a client from addresses come
in here right from this particular address and I can keep doing this again and again receive and send
send the client side.
I will have something where I send receive so I can say something like.