1 00:00:04,730 --> 00:00:08,180 Tsipi, a new protocols for sockets. 2 00:00:08,390 --> 00:00:09,250 Hello, everyone. 3 00:00:10,100 --> 00:00:16,700 In the last three videos of this section, we're going to create the most interesting project so far. 4 00:00:16,850 --> 00:00:25,180 Namely, we're going to create a server and client which will communicate with the server and we will 5 00:00:25,190 --> 00:00:26,380 do that two times. 6 00:00:26,420 --> 00:00:33,740 So in this video, I'm going to talk about how we use disciplinary protocols for creating servers and 7 00:00:33,780 --> 00:00:34,340 clients. 8 00:00:34,340 --> 00:00:40,660 And in the next two videos, I will create the actual Tsipi and UDP clients and servers. 9 00:00:40,910 --> 00:00:46,370 So in the next video, we're going to be talking about the TCAP client and server. 10 00:00:46,370 --> 00:00:49,430 And I will show you how we can create them and use them. 11 00:00:49,430 --> 00:00:52,220 And we will send a single informational message. 12 00:00:52,520 --> 00:00:59,510 And then I will create a UDP server and client and you will be able to chat with your client over the 13 00:00:59,660 --> 00:01:02,770 board that you're connected from the client to the server. 14 00:01:03,140 --> 00:01:09,370 And this is basically in general, the concept of chatting is exchanging messages on the web. 15 00:01:09,530 --> 00:01:16,040 So you see how this is done and how two people can communicate only by a code written by you. 16 00:01:16,280 --> 00:01:23,030 So in general, the properties of the sockets pretty much depend on the protocol with which they're 17 00:01:23,030 --> 00:01:23,860 implemented. 18 00:01:23,990 --> 00:01:33,380 So normally the communication within the sockets between the client and the server is done by the Tsipi 19 00:01:33,380 --> 00:01:40,790 and the IP address family, which uses the two most common protocols, which are the discipline, the 20 00:01:40,790 --> 00:01:41,360 UDP. 21 00:01:41,570 --> 00:01:49,480 So if you're looking at the properties that the DP protocol has, for example, it is a connection oriented. 22 00:01:49,640 --> 00:01:53,040 It really prevents so what we have from errors. 23 00:01:53,240 --> 00:02:00,380 So once you connect from the server to the from the client to the server, you can be sure that you 24 00:02:00,380 --> 00:02:07,880 will not generate any errors because there doesn't crush the DCP client anticipate. 25 00:02:08,060 --> 00:02:10,670 And actually copies are very good with errors. 26 00:02:10,790 --> 00:02:18,890 And the very specific thing for the TCAP protocol is that every message reaches the desired location 27 00:02:18,890 --> 00:02:19,430 in order. 28 00:02:19,670 --> 00:02:25,520 For example, always the first message goes first and the last message goes last. 29 00:02:25,550 --> 00:02:29,230 So it just first send it first received concept. 30 00:02:29,390 --> 00:02:36,320 If we talk about the unity protocol on their site, it is actually not connectional related protocol, 31 00:02:36,350 --> 00:02:38,540 unlike the dispute protocol. 32 00:02:38,720 --> 00:02:46,220 So it doesn't guarantee that the message goes without errors, but it guarantees that the message actually 33 00:02:46,220 --> 00:02:48,550 arrives in a reliable way. 34 00:02:48,740 --> 00:02:54,800 And finally, the specific thing for the Europese that the messages that are sent it are not guaranteed 35 00:02:54,800 --> 00:02:58,090 to be received in the same order that they send it. 36 00:02:58,340 --> 00:03:04,060 So we can say that the is way more dynamic and the random protocol comparing to the Tsipi. 37 00:03:04,370 --> 00:03:08,870 So for that reason, we want this both of them, as they are very different from each other. 38 00:03:09,140 --> 00:03:16,610 So in order to do the communication between the client and the server or something called network programming, 39 00:03:16,820 --> 00:03:22,940 you need to use the sockets, the socket function, which is available in the python socket module, 40 00:03:23,120 --> 00:03:26,300 and we actually already use this function in order. 41 00:03:27,430 --> 00:03:35,620 To connect to the Web based servers, we're also going to be using in the last two videos functions 42 00:03:35,740 --> 00:03:41,660 such as the Viant function, which is a method that binds a hostname and a birth name to a socket. 43 00:03:41,910 --> 00:03:48,090 We're going to be using the listen method, which is basically configuring and starting with this listener. 44 00:03:48,310 --> 00:03:54,760 And also we're going to use the same function, which will basically declare when the connection is 45 00:03:54,760 --> 00:04:00,070 accepted and how much time it will be waiting until the message has been arrived. 46 00:04:00,430 --> 00:04:03,850 So this was the introduction days to the next two videos. 47 00:04:04,030 --> 00:04:05,980 I hope it was clear because. 48 00:04:07,050 --> 00:04:12,800 In the next what in the next one, we're going to start coding our server and our typical. 49 00:04:13,440 --> 00:04:18,210 So I hope you enjoy the next two videos, but for me, that was everything for today. 50 00:04:18,210 --> 00:04:19,890 And I will see you in the next one.