WEBVTT

00:00.300 --> 00:08.280
OK now to make the changes in the chat that we can just go onto the chat and let's click on the client

00:08.310 --> 00:09.230
and server.

00:09.810 --> 00:18.960
We just want to make a few changes where you know we would want to have things like the petabytes connectivity

00:18.990 --> 00:25.500
out your read we would want to that data to client when he comes.

00:25.500 --> 00:32.270
Not just his name but his you know a lot of the details are sent.

00:32.340 --> 00:33.880
Let's see for example.

00:34.320 --> 00:41.910
You know whatever he was say his name and then he enters.

00:42.010 --> 00:42.290
Yes.

00:42.330 --> 00:49.860
Tell him Hoskin is you know he's he's a client who's who is entering who is coming from some location

00:51.180 --> 00:53.370
maybe you can ask him for his email.

00:53.400 --> 00:55.650
So input

00:58.210 --> 01:00.860
enter your email.

01:01.060 --> 01:02.010
Right.

01:02.050 --> 01:14.560
So this is one thing and let's say long email has also wanted to state of data but to be given so let

01:14.550 --> 01:20.140
me say put Ok forget about the.

01:20.170 --> 01:26.160
Currently we can we can deal without it for now but we have couple of things along with the name and

01:26.190 --> 01:30.750
email and and stuff like that.

01:30.780 --> 01:35.410
So also his IP address needs to be stored.

01:35.730 --> 01:37.590
You know things like that need to be stored.

01:37.590 --> 01:44.500
So what we can do is we can just we can just say I'll create a dictionary.

01:44.820 --> 01:53.700
Say client in full dictionary which is going to be empty dictionary but when the name is entered I can

01:53.700 --> 01:56.680
say client info.

01:56.850 --> 02:03.040
I'm going to put my name as one of the arguments in it.

02:03.150 --> 02:11.850
Client for name is Zach Wahls input entry name and playing intro email as going to be one of the arguments

02:12.130 --> 02:19.950
for one of the keys of playing and Schrott so we can have that well you know taking bolts from the user

02:19.980 --> 02:30.870
taking with the client and when I send it I'm going to say you know I'm going to you know in code basically

02:31.950 --> 02:40.490
get both of them clean in full name and Klein e-mail sent together dotted code and sent it out there.

02:40.500 --> 02:52.050
So what I can do is maybe we can just create a string let's say client finally create client client

02:52.170 --> 02:59.090
SDR is going to be playing for his name.

02:59.130 --> 03:03.750
So then what we do is instead of creating the dictionary because any way we are going to spend do it

03:03.750 --> 03:04.170
right.

03:04.320 --> 03:10.950
So let's not have this dictionary out here let's just have a simple two variables one is a name and

03:10.950 --> 03:12.830
another is the email.

03:12.900 --> 03:20.100
So I'm going to have them all to your name in an email and I'm going to create something like a client

03:20.100 --> 03:28.800
involved here now which is going to be equal to the name and the role number.

03:28.830 --> 03:36.200
So I'm going to store it in such a way that you're going to have something like Nick's name naming colon

03:37.310 --> 03:49.330
name call and whatever it is his name up sorry and that's the role or e-mail and whatever his e-mail

03:49.330 --> 03:58.410
ID that's going to be again Plath's along with email with a colon and then say eveil.

03:58.510 --> 04:06.010
So now when I send send it to the server I'm going to just send client info on it.

04:06.120 --> 04:07.110
That's it.

04:07.220 --> 04:14.510
So I'm going to send the name and the e-mail with the name calling name and email calling and after

04:14.590 --> 04:20.270
the name what I can do is I can put the I can put a comma so that there is.

04:20.690 --> 04:24.010
That is a clear distinction between but.

04:24.790 --> 04:26.910
So one is a name and one is an e-mail.

04:26.920 --> 04:28.230
And both of them are there.

04:28.420 --> 04:35.980
So what I'm going to do is initially when I send it course my Silverside should Silverside should be

04:35.980 --> 04:37.640
changed in such a way.

04:38.070 --> 04:38.810
OK.

04:38.950 --> 04:40.230
Where's the error.

04:40.240 --> 04:50.720
So it says Name all names you're name is your aunt names your name and email is put OK.

04:50.850 --> 04:51.860
E-mail.

04:52.020 --> 04:56.690
I think I think that is.

04:56.980 --> 04:57.580
Yeah.

04:58.010 --> 04:59.510
That's OK.

04:59.520 --> 05:00.590
So this is safe.

05:00.610 --> 05:09.420
And let me go to server and so what I'm going to do is basically got a connection from client and address

05:09.440 --> 05:15.820
it or I have the address of the client with me and I have the name.

05:15.840 --> 05:25.620
So what I can do is when I do conduct seith OK when I receive there's not going to be name just name

05:25.630 --> 05:27.240
this is going to be client of the scoring.

05:27.250 --> 05:38.150
All right client Klein and the score control which comes up here I need to store them when a choir.

05:38.610 --> 05:48.030
So let's say Klein and scornful you know dot split split that whenever there is a split at whether there's

05:48.030 --> 05:48.680
a comma.

05:48.730 --> 05:57.590
That's Give me that will give me a list of give me a list of blind info again which is going to be a

05:57.590 --> 06:03.200
list pay plan info list and full list.

06:03.230 --> 06:13.370
Now this particular list we have to you know we have to create was going to be a list of you know splitting

06:13.770 --> 06:22.610
spring things where there's a comma and let's say we have this in mind.

06:22.950 --> 06:29.810
And then I need to split them up into you know different different portions and I have the name calling

06:29.940 --> 06:36.580
saying the address no name calling name and have.

06:36.650 --> 06:40.220
So I can just print out your print

06:43.440 --> 06:44.190
client

06:46.830 --> 06:48.090
by the name of

06:51.760 --> 06:52.940
a client has connected

06:58.240 --> 07:03.490
instead of printing it's your name.

07:03.910 --> 07:05.880
I guess I'll copy this and I'll put it to you.

07:07.840 --> 07:13.610
Truthless got a connection from a client that addresses ETR

07:17.840 --> 07:27.200
and name call Ma Kline underscore entrail OK the

07:30.140 --> 07:32.070
I'll have to again split it up right.

07:32.180 --> 07:39.950
Because the Glend for skyline underscore in fall off list consists of these two things.

07:40.130 --> 07:44.210
So let's say the zero consists of name calling.

07:44.210 --> 07:46.590
So I need to split it.

07:46.820 --> 07:52.550
Wherever there is a colon and when there is a colon wherever I split wherever there is a colon I'm going

07:52.540 --> 07:54.960
to say that's going to be my.

07:55.620 --> 07:56.420
OK.

07:56.480 --> 08:03.130
No rice splitted there where there's a colon I'm going to split it up right.

08:03.230 --> 08:05.880
So maybe we can give it a try.

08:05.990 --> 08:11.960
Just a minute on Jupiter notebook you can go on you get in and you can just have a check out here.

08:12.500 --> 08:15.070
Let's say this is the string that is going to get.

08:15.080 --> 08:20.920
So you're going to get a string which says Name calling X Y Z OK.

08:21.140 --> 08:27.070
Come on you're going to get often name.

08:27.070 --> 08:29.770
What's the next thing that you're going to get asked to name.

08:29.770 --> 08:32.370
You're going to get e-mail

08:35.380 --> 08:39.850
e-mail or call an X Y Z at company dot com.

08:40.410 --> 08:41.780
So we're going to check OK.

08:41.790 --> 08:47.530
So instead of saying s that is nothing but claimed it will try to score it right.
