1
00:00:10,000 --> 00:00:11,000
Parents today.

2
00:00:12,000 --> 00:00:20,000
I will tell you about UDP protocol in Libya, basically.

3
00:00:21,000 --> 00:00:31,000
UDP stands for user diagram protocol as you see user diagram protocol.

4
00:00:32,000 --> 00:00:37,000
There is a difference between TCP protocol and UDP protocol.

5
00:00:38,000 --> 00:00:45,000
TCP protocol is connection oriented protocol, whereas UDP connection less protocol.

6
00:00:46,000 --> 00:00:49,000
UDP is much faster than TCP.

7
00:00:50,000 --> 00:00:57,000
But there is a chance of loss of data in case of UDP.

8
00:00:58,000 --> 00:01:06,000
So there are some internet protocols or internet application that uses UDP.

9
00:01:06,000 --> 00:01:10,000
That is DNS domain name system.

10
00:01:11,000 --> 00:01:20,000
The Simple Network Management Protocol SNMP, the routing information protocol or IP and Dynamic Host

11
00:01:20,000 --> 00:01:22,000
Configuration Protocol, HTTP.

12
00:01:23,000 --> 00:01:29,000
So let's go to our UDP and let's do.

13
00:01:29,000 --> 00:01:35,000
So I just open our front panel over here.

14
00:01:35,000 --> 00:01:38,000
I just create a string control

15
00:01:41,000 --> 00:01:42,000
for the IP address.

16
00:01:47,000 --> 00:01:55,000
Then I also create a control for data

17
00:01:58,000 --> 00:02:04,000
and I also create indicator for data out.

18
00:02:08,000 --> 00:02:11,000
Peter Reid Or you can say this is data, right?

19
00:02:31,000 --> 00:02:37,000
So I just go to our blog diagram, window dressing control e.

20
00:02:39,000 --> 00:02:46,000
So in this, I just go to data communication protocols.

21
00:02:47,000 --> 00:02:49,000
UDP protocol.

22
00:02:49,000 --> 00:02:51,000
Just lock it first.

23
00:02:51,000 --> 00:02:55,000
I use open, udp open.

24
00:02:55,000 --> 00:02:57,000
I just visible its name.

25
00:02:58,000 --> 00:03:07,000
Then I want to write from one old.

26
00:03:09,000 --> 00:03:10,000
Just connected.

27
00:03:13,000 --> 00:03:16,000
Then I want to close it.

28
00:03:20,000 --> 00:03:24,000
As you see, I also create a value over here.

29
00:03:29,000 --> 00:03:35,000
And in this over here, this is my import data.

30
00:03:38,000 --> 00:03:41,000
And over here, this is the address.

31
00:03:42,000 --> 00:03:44,000
It is connected to this.

32
00:03:44,000 --> 00:03:50,000
And I want to convert string to IP address.

33
00:03:50,000 --> 00:03:52,000
In the TCP protocol, you can find out.

34
00:03:53,000 --> 00:04:00,000
STEYN two IP conversion, STR two IP, as you see, just connected.

35
00:04:01,000 --> 00:04:06,000
And over here, you have to put the old address.

36
00:04:07,000 --> 00:04:12,000
Like, right now, I'm using 8005.

37
00:04:14,000 --> 00:04:20,000
Okay, control you as you see.

38
00:04:24,000 --> 00:04:25,000
We're here.

39
00:04:25,000 --> 00:04:28,000
This is my input for this.

40
00:04:28,000 --> 00:04:30,000
Let's say it is 8000.

41
00:04:32,000 --> 00:04:32,000
Control you.

42
00:04:33,000 --> 00:04:38,000
So this is my sending code and this is my receiving.

43
00:04:39,000 --> 00:04:45,000
So now I also create a stop button also.

44
00:04:46,000 --> 00:04:54,000
So over here in the front panel, I create a stop button.

45
00:04:58,000 --> 00:05:03,000
You have to connect this for this wide loop.

46
00:05:04,000 --> 00:05:12,000
So I also connect a simple error handler over here.

47
00:05:23,000 --> 00:05:26,000
You replace this?

48
00:05:27,000 --> 00:05:31,000
It starts with tunnel control.

49
00:05:31,000 --> 00:05:36,000
You know, I just copy this,

50
00:05:39,000 --> 00:05:40,000
not copy.

51
00:05:40,000 --> 00:05:43,000
I again create another port.

52
00:05:44,000 --> 00:05:47,000
So first open and over here.

53
00:05:57,000 --> 00:05:59,000
This is TCP.

54
00:06:00,000 --> 00:06:04,000
I want to work with UDP.

55
00:06:04,000 --> 00:06:07,000
So just by mistake I take that.

56
00:06:08,000 --> 00:06:16,000
So right now the address is 8005 and I just create a y loop over here.

57
00:06:18,000 --> 00:06:21,000
From here I'm writing.

58
00:06:21,000 --> 00:06:27,000
Now I want to read disconnected.

59
00:06:29,000 --> 00:06:32,000
And over here, this is a close

60
00:06:35,000 --> 00:06:42,000
connect error into a rolled copy simple error handler

61
00:06:45,000 --> 00:06:46,000
at best.

62
00:06:46,000 --> 00:06:48,000
And over here, I got the data.

63
00:06:52,000 --> 00:07:03,000
Now, the problem is really just I want to create property node value.

64
00:07:06,000 --> 00:07:14,000
When I click on Stop Button, it will stop both the loops control you as you see.

65
00:07:15,000 --> 00:07:19,000
So I just label its label also.

66
00:07:33,000 --> 00:07:34,000
Control you.

67
00:07:35,000 --> 00:07:37,000
So this is the program.

68
00:07:37,000 --> 00:07:40,000
Now I go to our friend panel over here.

69
00:07:40,000 --> 00:07:42,000
I want to feed the IP address.

70
00:07:43,000 --> 00:07:45,000
And over here, I want to feed the data.

71
00:07:45,000 --> 00:07:50,000
So for IP address, I just go to command window.

72
00:07:56,000 --> 00:08:03,000
So over here, I want to just type IP address IP config

73
00:08:05,000 --> 00:08:08,000
so it will give me IP address.

74
00:08:08,000 --> 00:08:18,000
So IPV four address is one 92.1 68.0 .102.

75
00:08:18,000 --> 00:08:26,000
So I just put it over here and when I put anything hello

76
00:08:29,000 --> 00:08:31,000
at you.

77
00:08:36,000 --> 00:08:43,000
So it will cost from number 8000 to 8005, as you see over here.

78
00:08:44,000 --> 00:08:54,000
So anything you are writing over here, it will go from four number 8000 to 8005.

79
00:08:58,000 --> 00:08:59,000
As you see.

80
00:09:01,000 --> 00:09:14,000
So data is right here in this block and it goes from 8000 for number to 8005 and 8005 will be read over

81
00:09:14,000 --> 00:09:17,000
here and the data is read in this poll.

82
00:09:19,000 --> 00:09:22,000
And if you want to stop this, just click on this.

83
00:09:23,000 --> 00:09:24,000
It will stop my.

84
00:09:24,000 --> 00:09:30,000
So this is how you can read and write data using UDP protocol.

85
00:09:30,000 --> 00:09:31,000
Thank you.

