Parents today.
I will tell you about UDP protocol in Libya, basically.
UDP stands for user diagram protocol as you see user diagram protocol.
There is a difference between TCP protocol and UDP protocol.
TCP protocol is connection oriented protocol, whereas UDP connection less protocol.
UDP is much faster than TCP.
But there is a chance of loss of data in case of UDP.
So there are some internet protocols or internet application that uses UDP.
That is DNS domain name system.
The Simple Network Management Protocol SNMP, the routing information protocol or IP and Dynamic Host
Configuration Protocol, HTTP.
So let's go to our UDP and let's do.
So I just open our front panel over here.
I just create a string control
for the IP address.
Then I also create a control for data
and I also create indicator for data out.
Peter Reid Or you can say this is data, right?
So I just go to our blog diagram, window dressing control e.
So in this, I just go to data communication protocols.
UDP protocol.
Just lock it first.
I use open, udp open.
I just visible its name.
Then I want to write from one old.
Just connected.
Then I want to close it.
As you see, I also create a value over here.
And in this over here, this is my import data.
And over here, this is the address.
It is connected to this.
And I want to convert string to IP address.
In the TCP protocol, you can find out.
STEYN two IP conversion, STR two IP, as you see, just connected.
And over here, you have to put the old address.
Like, right now, I'm using 8005.
Okay, control you as you see.
We're here.
This is my input for this.
Let's say it is 8000.
Control you.
So this is my sending code and this is my receiving.
So now I also create a stop button also.
So over here in the front panel, I create a stop button.
You have to connect this for this wide loop.
So I also connect a simple error handler over here.
You replace this?
It starts with tunnel control.
You know, I just copy this,
not copy.
I again create another port.
So first open and over here.
This is TCP.
I want to work with UDP.
So just by mistake I take that.
So right now the address is 8005 and I just create a y loop over here.
From here I'm writing.
Now I want to read disconnected.
And over here, this is a close
connect error into a rolled copy simple error handler
at best.
And over here, I got the data.
Now, the problem is really just I want to create property node value.
When I click on Stop Button, it will stop both the loops control you as you see.
So I just label its label also.
Control you.
So this is the program.
Now I go to our friend panel over here.
I want to feed the IP address.
And over here, I want to feed the data.
So for IP address, I just go to command window.
So over here, I want to just type IP address IP config
so it will give me IP address.
So IPV four address is one 92.1 68.0 .102.
So I just put it over here and when I put anything hello
at you.
So it will cost from number 8000 to 8005, as you see over here.
So anything you are writing over here, it will go from four number 8000 to 8005.
As you see.
So data is right here in this block and it goes from 8000 for number to 8005 and 8005 will be read over
here and the data is read in this poll.
And if you want to stop this, just click on this.
It will stop my.
So this is how you can read and write data using UDP protocol.
Thank you.