WEBVTT

00:00.520 --> 00:03.900
But let's say if I want to send it to.

00:03.910 --> 00:04.380
OK.

00:04.390 --> 00:09.820
So basically receive you know I need to start this thread to you start at the same time I need to send

00:09.820 --> 00:14.990
data I need to keep doing sending data taking user input keep sending data.

00:15.130 --> 00:24.070
So I can call sending data as my main as my main file in my main file I just call this method sending

00:24.070 --> 00:24.550
it up.

00:24.640 --> 00:29.680
That's my main thread and this is a part time thread which keeps going on in receipts.

00:29.920 --> 00:30.520
Right.

00:30.520 --> 00:31.580
But now comes the question.

00:31.630 --> 00:36.400
All right so if that is the case if I ever receive data and if I was sending data but then I need to

00:36.400 --> 00:42.100
keep doing that again and again and again and again which means the entire thing needs to happen again

00:42.100 --> 00:48.220
and again which means it has to happen and why true because you can afford to make it happen only once.

00:48.310 --> 00:48.660
Right.

00:48.730 --> 00:56.260
So let's say over here to in while to say it here.

00:56.530 --> 00:57.170
Correct.

00:57.190 --> 01:02.040
So I save that and my client's side is done.

01:02.200 --> 01:07.920
Now we need to have my service done for which I start my programming for the side.

01:08.170 --> 01:15.010
So my Silverside First of all it has done my Except But again I do have two functions out here.

01:15.010 --> 01:25.250
The Deaf receive handle and the part where receive data but where I could have a function.

01:25.600 --> 01:25.970
OK.

01:25.980 --> 01:28.040
From from the client I'm going to receive data.

01:28.130 --> 01:28.640
OK.

01:28.730 --> 01:32.650
And but this time I need to use kind not.

01:33.000 --> 01:34.230
All right.

01:34.280 --> 01:36.520
Concord RACV

01:39.350 --> 01:48.200
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

01:48.200 --> 01:56.090
then whatever I get the data data that de-code okay or yeah that particular data I'll just print it

01:56.090 --> 02:03.090
on the screen by saying this has come from the client come Monday.

02:04.280 --> 02:04.880
Right.

02:05.180 --> 02:13.960
And let's say def receive deal and then other one will be Sendero which can be Colligan and again again

02:13.960 --> 02:22.330
as I told you both of them needs to happen many times hence you can have it and while true rate you

02:22.330 --> 02:26.090
can keep happening that quite many times.

02:26.200 --> 02:30.810
So insane data even though you want to keep happening again and again.

02:30.820 --> 02:35.740
So while is true what do I need to do I need to take an input from the user.

02:36.040 --> 02:42.560
I will wait there until I get an input from the user which I will take it in user underscoring what

02:44.410 --> 02:51.100
I need to encode it and after encoding it.

02:51.100 --> 02:58.370
I can send it as you know I can send it as bytes so I can do kind Dutch send all

03:01.800 --> 03:03.300
user input done in code.

03:03.540 --> 03:11.410
So I'll keep sending all this data again and again to the users that send all user input data in code.

03:11.610 --> 03:16.670
So with this so we've done that the send data on the received the report.

03:17.320 --> 03:20.240
And so what I get from the user.

03:20.290 --> 03:26.740
But now I need to start with the thread as I told you so I need to create a thread but the thread which

03:26.740 --> 03:35.540
means I need to import it from the trading post trade.

03:35.920 --> 03:42.220
Right so I import trade and then using this trade I can with an object but the target can be again.

03:42.330 --> 03:48.870
I want to receive data can happen keep happening from the client as a thread.

03:49.210 --> 03:51.500
No arguments.

03:51.710 --> 03:54.100
T t Roadstar.

03:56.280 --> 03:58.460
Right after you start.

03:58.680 --> 04:04.800
All I need to do is I need to call the send data Metford which is going to happen constantly in the

04:04.800 --> 04:07.900
main in the main So main is having one.

04:08.240 --> 04:12.120
And and these are happening at the same time.

04:12.210 --> 04:15.030
So your client the server.

04:15.300 --> 04:21.160
So we need to start up with it and let's see how things work.

04:21.180 --> 04:21.640
OK.

04:21.810 --> 04:24.960
So except and hopefully this should work.

04:24.960 --> 04:29.910
And then let's go on with the running part of it let's say server control shipped 10.

04:29.970 --> 04:32.390
So I run that server

04:36.210 --> 04:43.800
so my servers running stranglings and for clients let me say I run the client and let's say this one

04:43.800 --> 04:48.300
is control 10 to.

04:48.470 --> 04:53.330
So my client is also running and it's connected to the server but it says oh received takes at least

04:53.330 --> 04:54.450
one argument.

04:54.500 --> 04:56.200
Also you have a problem out there.

04:56.480 --> 04:58.920
So I'll stop all of them.

04:58.920 --> 04:59.820
Let's stop lying.

04:59.810 --> 05:06.260
And the server receives received received takes at least one argument and I think server side received.

05:06.340 --> 05:07.300
Oh yeah.

05:07.460 --> 05:12.840
You need to have this but then them should run correct.

05:13.000 --> 05:15.640
OK so you didn't give the number of bytes.

05:15.640 --> 05:22.280
All right so what we'll do is we'll put some debarking statements out here so so you can understand

05:22.280 --> 05:26.560
exactly where we be

05:30.350 --> 05:35.580
to post.

05:36.260 --> 05:37.500
That's correct.

05:43.340 --> 05:50.780
Server lessoning.

05:52.640 --> 06:10.720
And so let me so don't except and the minute you accept let's print got a client from addresses come

06:11.000 --> 06:19.120
in here right from this particular address and I can keep doing this again and again receive and send

06:20.590 --> 06:22.230
send the client side.

06:22.590 --> 06:28.950
I will have something where I send receive so I can say something like.
