Hello and welcome to another section in this section.
We are going to be a client server activation system, so it consists of two separate programs.
One is, correct me, client.
So the start line.
So the client is requires you to enter this hierarchy and then supposed to activate license and he's
supposed to connect to the server for activation and before activation, the status reached unregister
after activation issues register.
So the other part is the activation server.
So let's see what he does.
So the activation server, when you click on the start, you see these statuses shows service started
and then you're supposed to now connect with using a client.
So if you give a wrong zero.
And if he actively listens, he says from zero in on this oversight, he also shows the wrong theater.
So let's not try to and he sees two shows, unregistered press into the correct theater, creative license
or zero.
All right.
So let's try one.
Did he give your license?
Korecki And now you see the status has changed.
You register.
He can close in here on the server side.
It also shows the status, correct.
Serah received.
So this is how a client server activation system can be created.
So what happens is when you click on the license, the client is sent the Cedar Key to the server,
etc. then check it is correct.
If it is correct, the server, then send a message to the client saying this is correct.
However, if the after checking the server finds that this Iraqi is wrong, it will send another message
to tell the client that it is wrong.
Shiraki.
So this is how the communication works.
So let's get started.
We will force you to pass close will the time first.
So let's open.
C++, we Klingon following you, working on Windows this year and the year, let's change the name and
rename this project has going.
And then we he like the release.
And then we can set the icon so we can download a pop icon from icon like so search for beta and turn
this icon.
After you have downloaded this, cut it and put it in your new project, which we are going to create
now, so go to this cause and create a new the tannish time.
And so I can't say how let's go back to he'll bring me an asset, everything is Reichling on the planet
and go to options, then you will select the C++ thing.
And I check this lingering idea, Dennis Danisco and also and check runtime packages and contact is
then they're certainly icons and icons.
And Klingler over here.
Go to your C++ folder for these, for you.
Open the time for the and click on the icon click OK and click.
And before you say go to appearance and I said hostile to Facebook Classico.
Eisenberg, classical.
I spoke classical.
Looks like.
Next time I spoke to so be sure, his electorate down here, Anglicised Nourizadeh, icon for this phone,
rankly, on your left and then go to the Hakone.
They in two days and look, the year that.
Then the caption in the form, that's junjie.
To.
National security people on.
It's cool to climb for the see it again, see you again next year.
You are going to act Grutness.
Klingon group Boxing Hootin from.
And the title of the caption you're going to go into this year.
So click on that and choose a caption to end this year.
Then you are going to put an 80, 90 year button and leave a.
So that's all I had from the panel.
So this is a very nice on and a tax, this tax and this Renesmee.
We need to go down, look for the property and call it and see you next, you push the button here.
So go to the ballot and select the button and say, here, let's change the name for a button.
This can't be the TV and the caption, let's go out and look for the caption poverty and change it to
the next level here to show the status of labor on the ballot and click from and for the caption you
see unregister.
Again, for the name that's change it down to name, let's call it labor status.
OK, so we've got everything.
Now, one more thing we need to and, uh, uh, to keep flying.
So this search going on here and look for the indication this one time.
So click on this thing you find here and clicking anything from this is the invisible component.
It will not be visible when the program runs.
So in decline.
This is a connection that will be used.
This is the object that will create a connection to the server.
So that's going on.
And we need to go down here and call it DCP Time.
So now we are going to set the plane host.
Your host will be one two seven zero zero one, which is to look back all across the computer.
Why do so many special IP for connecting to any programs that are running on the existing same machine
as you are mean, which is your current computer that you're running this program?
So now the part we're on the phone and choose.
One, two, three, four, five.
So after setting these two, there's no great handler for the 40 button.
OK, so this typically on TV and in here we create a commission using three.
In the.
He used the subcommittee to write.
To the server, whatever the user has entered.
Then read respond to a survey starting the integer call, your response used to be kind.
They suck Jack, an integer, 32 taito by integer, by integer, and then over here we are going to
convert the integer to string super string first to see the civil response and also a string
used to function in the string in passing the integer that we receive.
Then you test the civil response.
The sequel to one so is a pretty one means that the zero keys.
Correct.
So this is correct.
Then we are going to set relabelled.
Labor's tactics, ception.
Right here, this should be severe strain and severe response.
Certification to register.
However, if the message comes in, he's anyone other than one means that it is the wrong silkie we
will set the standards to.
It's got bits and pieces here, the second step is to register.
We will also show box.
If the city is correct, then we want to see something pop up box and you say you could put out in front
and see Korecki.
And thank you as the caption and put one OK button and also put an asterisk on.
Then could this and be seen here, we will show you not a message for their own strategy.
See Ron when the caption Sarah.
And for the icon, we are going to show an air icon.
OK, so do we.
When you click the button activate, you connect to the server, send whatever there is a key after
within the string to digital, and then wait for a socket for the server.
So many server replies, you are going to read integer that comes back from the server and starting
the variable.
Then you convert the digital stream installing server stream and then compare to each one.
If the string is one, which means your theory is correct, then you change the capturing to register
and also show a message box correctly.
However, if the server string is adding one, for example, with zero, that means he's wrong.
Zero.
And so you sure I'm ready to ensure a message to tell the user from zero.
So let's do this now that everything is stable.
And that's really I mean this.
Yeah.
So we have it here quickly and you can try to click something and you see there being error because
the server is not running the server, it's not running.
So you can error.
So we now have to do the server.
So that's not a straight the easy from the release order before we built server single here in the project
folder and go to the leaseholder and so XIKAR.
So this copy copy and maybe you can put it on your desktop.
Let's close this now.
You put it up here.
And so we is a new one, right, so now we are going to build the server to do that in the next lesson,
how student.
Thank you for watching.