Repository navigation
Expand file tree
/
Copy pathasyncio-protocol.po
More file actions
1458 lines (1264 loc) · 65.9 KB
/
Copy pathasyncio-protocol.po
File metadata and controls
1458 lines (1264 loc) · 65.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Dmytro Kazanzhy, 2022
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-04-11 14:19+0000\n"
"PO-Revision-Date: 2021-06-28 00:55+0000\n"
"Last-Translator: Dmytro Kazanzhy, 2022\n"
"Language-Team: Ukrainian (https://app.transifex.com/python-doc/teams/5390/"
"uk/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: uk\n"
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != "
"11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % "
"100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || "
"(n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
msgid "Transports and Protocols"
msgstr "Транспорт і протоколи"
msgid "Preface"
msgstr "Передмова"
msgid ""
"Transports and Protocols are used by the **low-level** event loop APIs such "
"as :meth:`loop.create_connection`. They use callback-based programming "
"style and enable high-performance implementations of network or IPC "
"protocols (e.g. HTTP)."
msgstr ""
"Транспорти та протоколи використовуються API циклу подій **низького рівня**, "
"наприклад :meth:`loop.create_connection`. Вони використовують стиль "
"програмування на основі зворотного виклику та дозволяють високопродуктивні "
"реалізації мережевих або IPC-протоколів (наприклад, HTTP)."
msgid ""
"Essentially, transports and protocols should only be used in libraries and "
"frameworks and never in high-level asyncio applications."
msgstr ""
"По суті, транспорти та протоколи слід використовувати лише в бібліотеках і "
"фреймворках, а не в асинхронних програмах високого рівня."
msgid "This documentation page covers both `Transports`_ and `Protocols`_."
msgstr "Ця сторінка документації охоплює як `Transports`_, так і `Protocols`_."
msgid "Introduction"
msgstr "Вступ"
msgid ""
"At the highest level, the transport is concerned with *how* bytes are "
"transmitted, while the protocol determines *which* bytes to transmit (and to "
"some extent when)."
msgstr ""
"На найвищому рівні транспорт стосується того, *як* передаються байти, тоді "
"як протокол визначає, *які* байти передавати (і певною мірою коли)."
msgid ""
"A different way of saying the same thing: a transport is an abstraction for "
"a socket (or similar I/O endpoint) while a protocol is an abstraction for an "
"application, from the transport's point of view."
msgstr ""
"Інший спосіб сказати те саме: транспорт є абстракцією для сокета (або "
"подібної кінцевої точки вводу/виводу), тоді як протокол є абстракцією для "
"програми з точки зору транспорту."
msgid ""
"Yet another view is the transport and protocol interfaces together define an "
"abstract interface for using network I/O and interprocess I/O."
msgstr ""
"Ще один погляд полягає в тому, що транспортний і протокольний інтерфейси "
"разом визначають абстрактний інтерфейс для використання мережевого вводу-"
"виводу та міжпроцесного введення-виведення."
msgid ""
"There is always a 1:1 relationship between transport and protocol objects: "
"the protocol calls transport methods to send data, while the transport calls "
"protocol methods to pass it data that has been received."
msgstr ""
"Між транспортними об’єктами та об’єктами протоколу завжди існує зв’язок 1:1: "
"протокол викликає транспортні методи для надсилання даних, тоді як транспорт "
"викликає протокольні методи для передачі йому отриманих даних."
msgid ""
"Most of connection oriented event loop methods (such as :meth:`loop."
"create_connection`) usually accept a *protocol_factory* argument used to "
"create a *Protocol* object for an accepted connection, represented by a "
"*Transport* object. Such methods usually return a tuple of ``(transport, "
"protocol)``."
msgstr ""
"Більшість методів циклу подій, орієнтованих на підключення (таких як :meth:"
"`loop.create_connection`), зазвичай приймають аргумент *protocol_factory*, "
"який використовується для створення об’єкта *Protocol* для прийнятного "
"з’єднання, представленого об’єктом *Transport*. Такі методи зазвичай "
"повертають кортеж ``(транспорт, протокол)``."
msgid "Contents"
msgstr "Зміст"
msgid "This documentation page contains the following sections:"
msgstr "Ця сторінка документації містить такі розділи:"
msgid ""
"The `Transports`_ section documents asyncio :class:`BaseTransport`, :class:"
"`ReadTransport`, :class:`WriteTransport`, :class:`Transport`, :class:"
"`DatagramTransport`, and :class:`SubprocessTransport` classes."
msgstr ""
"Розділ `Transports`_ документує asyncio :class:`BaseTransport`, :class:"
"`ReadTransport`, :class:`WriteTransport`, :class:`Transport`, :class:"
"`DatagramTransport` і :class:`SubprocessTransport` класи."
msgid ""
"The `Protocols`_ section documents asyncio :class:`BaseProtocol`, :class:"
"`Protocol`, :class:`BufferedProtocol`, :class:`DatagramProtocol`, and :class:"
"`SubprocessProtocol` classes."
msgstr ""
"Розділ `Protocols`_ документує асинхронні класи :class:`BaseProtocol`, :"
"class:`Protocol`, :class:`BufferedProtocol`, :class:`DatagramProtocol` і :"
"class:`SubprocessProtocol`."
msgid ""
"The `Examples`_ section showcases how to work with transports, protocols, "
"and low-level event loop APIs."
msgstr ""
"Розділ `Examples`_ демонструє, як працювати з транспортами, протоколами та "
"API низькорівневого циклу подій."
msgid "Transports"
msgstr "Транспорти"
msgid "**Source code:** :source:`Lib/asyncio/transports.py`"
msgstr "**Вихідний код:** :source:`Lib/asyncio/transports.py`"
msgid ""
"Transports are classes provided by :mod:`asyncio` in order to abstract "
"various kinds of communication channels."
msgstr ""
"Транспорти — це класи, надані :mod:`asyncio` для абстрагування різних видів "
"каналів зв’язку."
msgid ""
"Transport objects are always instantiated by an :ref:`asyncio event loop "
"<asyncio-event-loop>`."
msgstr ""
"Транспортні об’єкти завжди створюються :ref:`асинхронним циклом подій "
"<asyncio-event-loop>`."
msgid ""
"asyncio implements transports for TCP, UDP, SSL, and subprocess pipes. The "
"methods available on a transport depend on the transport's kind."
msgstr ""
"asyncio реалізує транспорти для каналів TCP, UDP, SSL і підпроцесів. Методи, "
"доступні на транспорті, залежать від типу транспорту."
msgid ""
"The transport classes are :ref:`not thread safe <asyncio-multithreading>`."
msgstr ""
"Транспортні класи :ref:`не потоково безпечні <asyncio-multithreading>`."
msgid "Transports Hierarchy"
msgstr "Ієрархія транспортів"
msgid ""
"Base class for all transports. Contains methods that all asyncio transports "
"share."
msgstr ""
"Базовий клас для всіх видів транспорту. Містить методи, спільні для всіх "
"асинхронних транспортів."
msgid "A base transport for write-only connections."
msgstr "Базовий транспорт для підключень лише для запису."
msgid ""
"Instances of the *WriteTransport* class are returned from the :meth:`loop."
"connect_write_pipe` event loop method and are also used by subprocess-"
"related methods like :meth:`loop.subprocess_exec`."
msgstr ""
"Екземпляри класу *WriteTransport* повертаються з методу циклу подій :meth:"
"`loop.connect_write_pipe`, а також використовуються пов’язаними з "
"підпроцесами методами, наприклад :meth:`loop.subprocess_exec`."
msgid "A base transport for read-only connections."
msgstr "Базовий транспорт для підключень лише для читання."
msgid ""
"Instances of the *ReadTransport* class are returned from the :meth:`loop."
"connect_read_pipe` event loop method and are also used by subprocess-related "
"methods like :meth:`loop.subprocess_exec`."
msgstr ""
"Екземпляри класу *ReadTransport* повертаються з методу циклу подій :meth:"
"`loop.connect_read_pipe`, а також використовуються пов’язаними з "
"підпроцесами методами, наприклад :meth:`loop.subprocess_exec`."
msgid ""
"Interface representing a bidirectional transport, such as a TCP connection."
msgstr ""
"Інтерфейс, що представляє двонаправлений транспорт, наприклад TCP-з'єднання."
msgid ""
"The user does not instantiate a transport directly; they call a utility "
"function, passing it a protocol factory and other information necessary to "
"create the transport and protocol."
msgstr ""
"Користувач не створює екземпляр транспорту безпосередньо; вони викликають "
"службову функцію, передаючи їй фабрику протоколів та іншу інформацію, "
"необхідну для створення транспорту та протоколу."
msgid ""
"Instances of the *Transport* class are returned from or used by event loop "
"methods like :meth:`loop.create_connection`, :meth:`loop."
"create_unix_connection`, :meth:`loop.create_server`, :meth:`loop.sendfile`, "
"etc."
msgstr ""
"Екземпляри класу *Transport* повертаються або використовуються такими "
"методами циклу подій, як :meth:`loop.create_connection`, :meth:`loop."
"create_unix_connection`, :meth:`loop.create_server`, :meth:`loop. sendfile` "
"тощо."
msgid "A transport for datagram (UDP) connections."
msgstr "Транспорт для з’єднань дейтаграм (UDP)."
msgid ""
"Instances of the *DatagramTransport* class are returned from the :meth:`loop."
"create_datagram_endpoint` event loop method."
msgstr ""
"Екземпляри класу *DatagramTransport* повертаються з методу циклу подій :meth:"
"`loop.create_datagram_endpoint`."
msgid ""
"An abstraction to represent a connection between a parent and its child OS "
"process."
msgstr ""
"Абстракція для представлення зв’язку між батьківським і дочірнім процесами "
"ОС."
msgid ""
"Instances of the *SubprocessTransport* class are returned from event loop "
"methods :meth:`loop.subprocess_shell` and :meth:`loop.subprocess_exec`."
msgstr ""
"Екземпляри класу *SubprocessTransport* повертаються з методів циклу подій :"
"meth:`loop.subprocess_shell` і :meth:`loop.subprocess_exec`."
msgid "Base Transport"
msgstr "Базовий транспорт"
msgid "Close the transport."
msgstr "Закрити транспорт."
msgid ""
"If the transport has a buffer for outgoing data, buffered data will be "
"flushed asynchronously. No more data will be received. After all buffered "
"data is flushed, the protocol's :meth:`protocol.connection_lost() "
"<BaseProtocol.connection_lost>` method will be called with :const:`None` as "
"its argument. The transport should not be used once it is closed."
msgstr ""
msgid "Return ``True`` if the transport is closing or is closed."
msgstr "Повертає ``True``, якщо транспорт закривається або закритий."
msgid "Return information about the transport or underlying resources it uses."
msgstr ""
"Повертає інформацію про транспорт або основні ресурси, які він використовує."
msgid ""
"*name* is a string representing the piece of transport-specific information "
"to get."
msgstr ""
"*ім’я* — це рядок, що представляє частину транспортної інформації, яку "
"потрібно отримати."
msgid ""
"*default* is the value to return if the information is not available, or if "
"the transport does not support querying it with the given third-party event "
"loop implementation or on the current platform."
msgstr ""
"*default* — це значення, яке повертається, якщо інформація недоступна або "
"якщо транспорт не підтримує її запит за допомогою сторонньої реалізації "
"циклу подій або на поточній платформі."
msgid ""
"For example, the following code attempts to get the underlying socket object "
"of the transport::"
msgstr ""
"Наприклад, наступний код намагається отримати базовий об’єкт сокета "
"транспорту::"
msgid ""
"sock = transport.get_extra_info('socket')\n"
"if sock is not None:\n"
" print(sock.getsockopt(...))"
msgstr ""
msgid "Categories of information that can be queried on some transports:"
msgstr "Категорії інформації, які можна запитувати на деяких транспортах:"
msgid "socket:"
msgstr "розетка:"
msgid ""
"``'peername'``: the remote address to which the socket is connected, result "
"of :meth:`socket.socket.getpeername` (``None`` on error)"
msgstr ""
"``'peername'``: віддалена адреса, до якої підключено сокет, результат :meth:"
"`socket.socket.getpeername` (``None`` у разі помилки)"
msgid "``'socket'``: :class:`socket.socket` instance"
msgstr "``'socket'``: :class:`socket.socket` екземпляр"
msgid ""
"``'sockname'``: the socket's own address, result of :meth:`socket.socket."
"getsockname`"
msgstr ""
"``'sockname'``: власна адреса сокета, результат :meth:`socket.socket."
"getsockname`"
msgid "SSL socket:"
msgstr "SSL-сокет:"
msgid ""
"``'compression'``: the compression algorithm being used as a string, or "
"``None`` if the connection isn't compressed; result of :meth:`ssl.SSLSocket."
"compression`"
msgstr ""
"``'стиснення'``: алгоритм стиснення, що використовується як рядок, або "
"``None``, якщо з'єднання не стиснуте; результат :meth:`ssl.SSLSocket."
"compression`"
msgid ""
"``'cipher'``: a three-value tuple containing the name of the cipher being "
"used, the version of the SSL protocol that defines its use, and the number "
"of secret bits being used; result of :meth:`ssl.SSLSocket.cipher`"
msgstr ""
"``'cipher'``: кортеж з трьох значень, що містить назву використовуваного "
"шифру, версію протоколу SSL, яка визначає його використання, і кількість "
"секретних бітів, що використовуються; результат :meth:`ssl.SSLSocket.cipher`"
msgid ""
"``'peercert'``: peer certificate; result of :meth:`ssl.SSLSocket.getpeercert`"
msgstr ""
"``'peercert'``: одноранговий сертифікат; результат :meth:`ssl.SSLSocket."
"getpeercert`"
msgid "``'sslcontext'``: :class:`ssl.SSLContext` instance"
msgstr "``'sslcontext'``: екземпляр :class:`ssl.SSLContext`"
msgid ""
"``'ssl_object'``: :class:`ssl.SSLObject` or :class:`ssl.SSLSocket` instance"
msgstr ""
"``'ssl_object'``: :class:`ssl.SSLObject` або :class:`ssl.SSLSocket` екземпляр"
msgid "pipe:"
msgstr "труба:"
msgid "``'pipe'``: pipe object"
msgstr "``'pipe'``: об'єкт труби"
msgid "subprocess:"
msgstr "підпроцес:"
msgid "``'subprocess'``: :class:`subprocess.Popen` instance"
msgstr "екземпляр ``'subprocess'``: :class:`subprocess.Popen`"
msgid "Set a new protocol."
msgstr "Встановіть новий протокол."
msgid ""
"Switching protocol should only be done when both protocols are documented to "
"support the switch."
msgstr ""
"Протокол перемикання слід виконувати лише тоді, коли обидва протоколи "
"задокументовано для підтримки перемикання."
msgid "Return the current protocol."
msgstr "Повернути поточний протокол."
msgid "Read-only Transports"
msgstr "Транспорти лише для читання"
msgid "Return ``True`` if the transport is receiving new data."
msgstr "Повертає ``True``, якщо транспорт отримує нові дані."
msgid ""
"Pause the receiving end of the transport. No data will be passed to the "
"protocol's :meth:`protocol.data_received() <Protocol.data_received>` method "
"until :meth:`resume_reading` is called."
msgstr ""
"Призупинити приймальний кінець транспорту. Жодні дані не будуть передані в "
"метод протоколу :meth:`protocol.data_received() <Protocol.data_received>`, "
"доки не буде викликано :meth:`resume_reading`."
msgid ""
"The method is idempotent, i.e. it can be called when the transport is "
"already paused or closed."
msgstr ""
"Метод є ідемпотентним, тобто його можна викликати, коли транспорт вже "
"призупинено або закрито."
msgid ""
"Resume the receiving end. The protocol's :meth:`protocol.data_received() "
"<Protocol.data_received>` method will be called once again if some data is "
"available for reading."
msgstr ""
"Відновіть приймальний кінець. Метод :meth:`protocol.data_received() "
"<Protocol.data_received>` протоколу буде викликано ще раз, якщо деякі дані "
"доступні для читання."
msgid ""
"The method is idempotent, i.e. it can be called when the transport is "
"already reading."
msgstr ""
"Метод є ідемпотентним, тобто його можна викликати, коли транспорт вже читає."
msgid "Write-only Transports"
msgstr "Транспорти лише для запису"
msgid ""
"Close the transport immediately, without waiting for pending operations to "
"complete. Buffered data will be lost. No more data will be received. The "
"protocol's :meth:`protocol.connection_lost() <BaseProtocol.connection_lost>` "
"method will eventually be called with :const:`None` as its argument."
msgstr ""
"Закрийте транспорт негайно, не чекаючи завершення незавершених операцій. "
"Буферизовані дані буде втрачено. Дані більше не надходитимуть. Метод :meth:"
"`protocol.connection_lost() <BaseProtocol.connection_lost>` протоколу "
"зрештою буде викликано з :const:`None` як аргумент."
msgid ""
"Return :const:`True` if the transport supports :meth:`~WriteTransport."
"write_eof`, :const:`False` if not."
msgstr ""
"Повертає :const:`True`, якщо транспорт підтримує :meth:`~WriteTransport."
"write_eof`, :const:`False`, якщо ні."
msgid "Return the current size of the output buffer used by the transport."
msgstr ""
"Повертає поточний розмір вихідного буфера, який використовується транспортом."
msgid ""
"Get the *high* and *low* watermarks for write flow control. Return a tuple "
"``(low, high)`` where *low* and *high* are positive number of bytes."
msgstr ""
"Отримайте *високий* і *низький* водяні знаки для керування потоком запису. "
"Повертає кортеж ``(low, high)``, де *low* і *high* є додатною кількістю "
"байтів."
msgid "Use :meth:`set_write_buffer_limits` to set the limits."
msgstr ""
"Використовуйте :meth:`set_write_buffer_limits`, щоб встановити обмеження."
msgid "Set the *high* and *low* watermarks for write flow control."
msgstr ""
"Встановіть *високий* і *низький* водяні знаки для керування потоком запису."
msgid ""
"These two values (measured in number of bytes) control when the protocol's :"
"meth:`protocol.pause_writing() <BaseProtocol.pause_writing>` and :meth:"
"`protocol.resume_writing() <BaseProtocol.resume_writing>` methods are "
"called. If specified, the low watermark must be less than or equal to the "
"high watermark. Neither *high* nor *low* can be negative."
msgstr ""
"Ці два значення (вимірюються в кількості байтів) контролюють, коли "
"викликаються методи протоколу :meth:`protocol.pause_writing() <BaseProtocol."
"pause_writing>` і :meth:`protocol.resume_writing() <BaseProtocol."
"resume_writing>`. Якщо вказано, нижній водяний знак має бути меншим або "
"дорівнювати високому водяному знаку. Ні *високий*, ні *низький* не можуть "
"бути негативними."
msgid ""
":meth:`~BaseProtocol.pause_writing` is called when the buffer size becomes "
"greater than or equal to the *high* value. If writing has been paused, :meth:"
"`~BaseProtocol.resume_writing` is called when the buffer size becomes less "
"than or equal to the *low* value."
msgstr ""
":meth:`~BaseProtocol.pause_writing` викликається, коли розмір буфера стає "
"більшим або рівним значенню *high*. Якщо запис призупинено, :meth:"
"`~BaseProtocol.resume_writing` викликається, коли розмір буфера стає меншим "
"або рівним *низькому* значенню."
msgid ""
"The defaults are implementation-specific. If only the high watermark is "
"given, the low watermark defaults to an implementation-specific value less "
"than or equal to the high watermark. Setting *high* to zero forces *low* to "
"zero as well, and causes :meth:`~BaseProtocol.pause_writing` to be called "
"whenever the buffer becomes non-empty. Setting *low* to zero causes :meth:"
"`~BaseProtocol.resume_writing` to be called only once the buffer is empty. "
"Use of zero for either limit is generally sub-optimal as it reduces "
"opportunities for doing I/O and computation concurrently."
msgstr ""
"Значення за замовчуванням залежать від реалізації. Якщо вказано лише високий "
"водяний знак, низький водяний знак за замовчуванням має значення, що "
"залежить від реалізації, менше або дорівнює верхньому водяному знаку. Якщо "
"встановити *high* на нуль, *low* також буде встановлено на нуль і спричинить "
"виклик :meth:`~BaseProtocol.pause_writing` щоразу, коли буфер стає "
"непорожнім. Якщо встановити *low* на нуль, :meth:`~BaseProtocol."
"resume_writing` буде викликатися лише після того, як буфер буде порожнім. "
"Використання нуля для будь-якого обмеження, як правило, є неоптимальним, "
"оскільки воно зменшує можливості одночасного виконання вводу-виводу та "
"обчислень."
msgid "Use :meth:`~WriteTransport.get_write_buffer_limits` to get the limits."
msgstr ""
"Використовуйте :meth:`~WriteTransport.get_write_buffer_limits`, щоб отримати "
"обмеження."
msgid "Write some *data* bytes to the transport."
msgstr "Запишіть кілька байтів *data* в транспорт."
msgid ""
"This method does not block; it buffers the data and arranges for it to be "
"sent out asynchronously."
msgstr ""
"Цей спосіб не блокує; він буферизує дані та організовує їх асинхронне "
"надсилання."
msgid ""
"Write a list (or any iterable) of data bytes to the transport. This is "
"functionally equivalent to calling :meth:`write` on each element yielded by "
"the iterable, but may be implemented more efficiently."
msgstr ""
"Запишіть список (або будь-яку ітерацію) байтів даних у транспорт. Це "
"функціонально еквівалентно виклику :meth:`write` для кожного елемента, "
"отриманого iterable, але може бути реалізовано більш ефективно."
msgid ""
"Close the write end of the transport after flushing all buffered data. Data "
"may still be received."
msgstr ""
"Закрийте кінець запису транспорту після очищення всіх буферизованих даних. "
"Дані ще можуть бути отримані."
msgid ""
"This method can raise :exc:`NotImplementedError` if the transport (e.g. SSL) "
"doesn't support half-closed connections."
msgstr ""
"Цей метод може викликати :exc:`NotImplementedError`, якщо транспорт "
"(наприклад, SSL) не підтримує напівзакриті з’єднання."
msgid "Datagram Transports"
msgstr "Транспортування дейтаграм"
msgid ""
"Send the *data* bytes to the remote peer given by *addr* (a transport-"
"dependent target address). If *addr* is :const:`None`, the data is sent to "
"the target address given on transport creation."
msgstr ""
"Надішліть байти *data* до віддаленого однорангового вузла, заданого *addr* "
"(цільова адреса, що залежить від транспорту). Якщо *addr* має значення :"
"const:`None`, дані надсилаються на цільову адресу, указану під час створення "
"транспорту."
msgid ""
"This method can be called with an empty bytes object to send a zero-length "
"datagram. The buffer size calculation used for flow control is also updated "
"to account for the datagram header."
msgstr ""
msgid ""
"Close the transport immediately, without waiting for pending operations to "
"complete. Buffered data will be lost. No more data will be received. The "
"protocol's :meth:`protocol.connection_lost() <BaseProtocol.connection_lost>` "
"method will eventually be called with :const:`None` as its argument."
msgstr ""
"Закрийте транспорт негайно, не чекаючи завершення незавершених операцій. "
"Буферизовані дані буде втрачено. Дані більше не надходитимуть. Метод :meth:"
"`protocol.connection_lost() <BaseProtocol.connection_lost>` протоколу "
"зрештою буде викликано з :const:`None` як аргумент."
msgid "Subprocess Transports"
msgstr "Транспортування підпроцесів"
msgid "Return the subprocess process id as an integer."
msgstr "Повертає ідентифікатор процесу підпроцесу як ціле число."
msgid ""
"Return the transport for the communication pipe corresponding to the integer "
"file descriptor *fd*:"
msgstr ""
"Повертає транспорт для комунікаційного каналу, що відповідає цілочисельному "
"файловому дескриптору *fd*:"
msgid ""
"``0``: readable streaming transport of the standard input (*stdin*), or :"
"const:`None` if the subprocess was not created with ``stdin=PIPE``"
msgstr ""
"``0``: доступний для читання потоковий транспорт стандартного введення "
"(*stdin*) або :const:`None`, якщо підпроцес не було створено за допомогою "
"``stdin=PIPE``"
msgid ""
"``1``: writable streaming transport of the standard output (*stdout*), or :"
"const:`None` if the subprocess was not created with ``stdout=PIPE``"
msgstr ""
"``1``: доступний для запису потоковий транспорт стандартного виводу "
"(*stdout*) або :const:`None`, якщо підпроцес не було створено за допомогою "
"``stdout=PIPE``"
msgid ""
"``2``: writable streaming transport of the standard error (*stderr*), or :"
"const:`None` if the subprocess was not created with ``stderr=PIPE``"
msgstr ""
"``2``: доступний для запису потоковий транспорт стандартної помилки "
"(*stderr*) або :const:`None`, якщо підпроцес не було створено за допомогою "
"``stderr=PIPE``"
msgid "other *fd*: :const:`None`"
msgstr "інший *fd*: :const:`None`"
msgid ""
"Return the subprocess return code as an integer or :const:`None` if it "
"hasn't returned, which is similar to the :attr:`subprocess.Popen.returncode` "
"attribute."
msgstr ""
"Повертає код повернення підпроцесу як ціле число або :const:`None`, якщо він "
"не повернувся, що подібно до атрибута :attr:`subprocess.Popen.returncode`."
msgid "Kill the subprocess."
msgstr "Закрийте підпроцес."
msgid ""
"On POSIX systems, the function sends SIGKILL to the subprocess. On Windows, "
"this method is an alias for :meth:`terminate`."
msgstr ""
"У системах POSIX функція надсилає SIGKILL підпроцесу. У Windows цей метод є "
"псевдонімом для :meth:`terminate`."
msgid "See also :meth:`subprocess.Popen.kill`."
msgstr "Дивіться також :meth:`subprocess.Popen.kill`."
msgid ""
"Send the *signal* number to the subprocess, as in :meth:`subprocess.Popen."
"send_signal`."
msgstr ""
"Надішліть номер *сигналу* підпроцесу, як у :meth:`subprocess.Popen."
"send_signal`."
msgid "Stop the subprocess."
msgstr "Зупиніть підпроцес."
msgid ""
"On POSIX systems, this method sends :py:const:`~signal.SIGTERM` to the "
"subprocess. On Windows, the Windows API function :c:func:`!TerminateProcess` "
"is called to stop the subprocess."
msgstr ""
msgid "See also :meth:`subprocess.Popen.terminate`."
msgstr "Дивіться також :meth:`subprocess.Popen.terminate`."
msgid "Kill the subprocess by calling the :meth:`kill` method."
msgstr "Закрийте підпроцес, викликавши метод :meth:`kill`."
msgid ""
"If the subprocess hasn't returned yet, and close transports of *stdin*, "
"*stdout*, and *stderr* pipes."
msgstr ""
"Якщо підпроцес ще не повернувся, закрийте транспорти каналів *stdin*, "
"*stdout* і *stderr*."
msgid "Protocols"
msgstr "Протоколи"
msgid "**Source code:** :source:`Lib/asyncio/protocols.py`"
msgstr "**Вихідний код:** :source:`Lib/asyncio/protocols.py`"
msgid ""
"asyncio provides a set of abstract base classes that should be used to "
"implement network protocols. Those classes are meant to be used together "
"with :ref:`transports <asyncio-transport>`."
msgstr ""
"asyncio надає набір абстрактних базових класів, які слід використовувати для "
"реалізації мережевих протоколів. Ці класи призначені для використання разом "
"із :ref:`transports <asyncio-transport>`."
msgid ""
"Subclasses of abstract base protocol classes may implement some or all "
"methods. All these methods are callbacks: they are called by transports on "
"certain events, for example when some data is received. A base protocol "
"method should be called by the corresponding transport."
msgstr ""
"Підкласи абстрактних базових класів протоколу можуть реалізовувати деякі або "
"всі методи. Усі ці методи є зворотними викликами: вони викликаються "
"транспортами під час певних подій, наприклад, коли надходять якісь дані. "
"Метод базового протоколу має викликатися відповідним транспортом."
msgid "Base Protocols"
msgstr "Базові протоколи"
msgid "Base protocol with methods that all protocols share."
msgstr "Базовий протокол із методами, які використовують усі протоколи."
msgid ""
"The base class for implementing streaming protocols (TCP, Unix sockets, etc)."
msgstr ""
"Базовий клас для реалізації потокових протоколів (TCP, Unix-сокети тощо)."
msgid ""
"A base class for implementing streaming protocols with manual control of the "
"receive buffer."
msgstr ""
"Базовий клас для реалізації потокових протоколів із ручним керуванням "
"приймальним буфером."
msgid "The base class for implementing datagram (UDP) protocols."
msgstr "Базовий клас для реалізації протоколів дейтаграм (UDP)."
msgid ""
"The base class for implementing protocols communicating with child processes "
"(unidirectional pipes)."
msgstr ""
"Базовий клас для реалізації протоколів, що спілкуються з дочірніми процесами "
"(односпрямовані канали)."
msgid "Base Protocol"
msgstr "Базовий протокол"
msgid "All asyncio protocols can implement Base Protocol callbacks."
msgstr ""
"Усі асинхронні протоколи можуть реалізовувати зворотні виклики базового "
"протоколу."
msgid "Connection Callbacks"
msgstr "Зворотні виклики підключення"
msgid ""
"Connection callbacks are called on all protocols, exactly once per a "
"successful connection. All other protocol callbacks can only be called "
"between those two methods."
msgstr ""
"Зворотні виклики підключення викликаються для всіх протоколів рівно один раз "
"за успішне підключення. Усі інші зворотні виклики протоколу можна викликати "
"лише між цими двома методами."
msgid "Called when a connection is made."
msgstr "Викликається, коли встановлено з'єднання."
msgid ""
"The *transport* argument is the transport representing the connection. The "
"protocol is responsible for storing the reference to its transport."
msgstr ""
"Аргумент *transport* — це транспорт, що представляє з’єднання. Протокол "
"відповідає за збереження посилання на свій транспорт."
msgid "Called when the connection is lost or closed."
msgstr "Викликається, коли з'єднання втрачено або закрито."
msgid ""
"The argument is either an exception object or :const:`None`. The latter "
"means a regular EOF is received, or the connection was aborted or closed by "
"this side of the connection."
msgstr ""
"Аргументом є або об’єкт винятку, або :const:`None`. Останнє означає, що "
"отримано звичайний EOF, або з’єднання було перервано чи закрито цією "
"стороною з’єднання."
msgid "Flow Control Callbacks"
msgstr "Зворотні виклики керування потоком"
msgid ""
"Flow control callbacks can be called by transports to pause or resume "
"writing performed by the protocol."
msgstr ""
"Зворотні виклики керування потоком можуть бути викликані транспортами, щоб "
"призупинити або відновити запис, який виконується протоколом."
msgid ""
"See the documentation of the :meth:`~WriteTransport.set_write_buffer_limits` "
"method for more details."
msgstr ""
"Додаткову інформацію дивіться в документації методу :meth:`~WriteTransport."
"set_write_buffer_limits`."
msgid "Called when the transport's buffer goes over the high watermark."
msgstr "Викликається, коли транспортний буфер переходить верхній водяний знак."
msgid "Called when the transport's buffer drains below the low watermark."
msgstr ""
"Викликається, коли транспортний буфер закінчується нижче низького водяного "
"знака."
msgid ""
"If the buffer size equals the high watermark, :meth:`~BaseProtocol."
"pause_writing` is not called: the buffer size must go strictly over."
msgstr ""
"Якщо розмір буфера дорівнює верхньому водяному знаку, :meth:`~BaseProtocol."
"pause_writing` не викликається: розмір буфера має суворо перевищувати."
msgid ""
"Conversely, :meth:`~BaseProtocol.resume_writing` is called when the buffer "
"size is equal or lower than the low watermark. These end conditions are "
"important to ensure that things go as expected when either mark is zero."
msgstr ""
"І навпаки, :meth:`~BaseProtocol.resume_writing` викликається, коли розмір "
"буфера дорівнює або менше ніж нижній водяний знак. Ці кінцеві умови важливі "
"для забезпечення того, щоб усе відбувалося так, як очікувалося, коли будь-"
"яка позначка дорівнює нулю."
msgid "Streaming Protocols"
msgstr "Протоколи потокової передачі"
msgid ""
"Event methods, such as :meth:`loop.create_server`, :meth:`loop."
"create_unix_server`, :meth:`loop.create_connection`, :meth:`loop."
"create_unix_connection`, :meth:`loop.connect_accepted_socket`, :meth:`loop."
"connect_read_pipe`, and :meth:`loop.connect_write_pipe` accept factories "
"that return streaming protocols."
msgstr ""
"Методи подій, такі як :meth:`loop.create_server`, :meth:`loop."
"create_unix_server`, :meth:`loop.create_connection`, :meth:`loop."
"create_unix_connection`, :meth:`loop.connect_accepted_socket`, :meth:`loop."
"connect_read_pipe` і :meth:`loop.connect_write_pipe` приймають фабрики, які "
"повертають потокові протоколи."
msgid ""
"Called when some data is received. *data* is a non-empty bytes object "
"containing the incoming data."
msgstr ""
"Викликається при отриманні деяких даних. *data* — це об’єкт із непорожніми "
"байтами, що містить вхідні дані."
msgid ""
"Whether the data is buffered, chunked or reassembled depends on the "
"transport. In general, you shouldn't rely on specific semantics and instead "
"make your parsing generic and flexible. However, data is always received in "
"the correct order."
msgstr ""
"Від транспортування залежить, чи будуть дані буферизовані, фрагментовані чи "
"повторно зібрані. Загалом, вам не слід покладатися на конкретну семантику, а "
"натомість робити аналіз загальним і гнучким. Однак дані завжди надходять у "
"правильному порядку."
msgid ""
"The method can be called an arbitrary number of times while a connection is "
"open."
msgstr ""
"Метод можна викликати довільну кількість разів, поки з’єднання відкрито."
msgid ""
"However, :meth:`protocol.eof_received() <Protocol.eof_received>` is called "
"at most once. Once ``eof_received()`` is called, ``data_received()`` is not "
"called anymore."
msgstr ""
msgid ""
"Called when the other end signals it won't send any more data (for example "
"by calling :meth:`transport.write_eof() <WriteTransport.write_eof>`, if the "
"other end also uses asyncio)."
msgstr ""
"Викликається, коли інший кінець сигналізує, що більше не надсилатиме даних "
"(наприклад, викликом :meth:`transport.write_eof() <WriteTransport."
"write_eof>`, якщо інший кінець також використовує asyncio)."
msgid ""
"This method may return a false value (including ``None``), in which case the "
"transport will close itself. Conversely, if this method returns a true "
"value, the protocol used determines whether to close the transport. Since "
"the default implementation returns ``None``, it implicitly closes the "
"connection."
msgstr ""
"Цей метод може повернути хибне значення (включаючи ``None``), у цьому "
"випадку транспорт закриється сам. І навпаки, якщо цей метод повертає істинне "
"значення, протокол, який використовується, визначає, чи закривати транспорт. "
"Оскільки реалізація за замовчуванням повертає ``None``, вона неявно закриває "
"з’єднання."
msgid ""
"Some transports, including SSL, don't support half-closed connections, in "
"which case returning true from this method will result in the connection "
"being closed."
msgstr ""
"Деякі транспортні засоби, включно з SSL, не підтримують напівзакриті "
"з’єднання, і в цьому випадку повернення true з цього методу призведе до "
"закриття з’єднання."
msgid "State machine:"
msgstr "Державна машина:"
msgid ""
"start -> connection_made\n"
" [-> data_received]*\n"
" [-> eof_received]?\n"
"-> connection_lost -> end"
msgstr ""
msgid "Buffered Streaming Protocols"
msgstr "Буферизовані потокові протоколи"
msgid ""
"Buffered Protocols can be used with any event loop method that supports "
"`Streaming Protocols`_."
msgstr ""
"Буферизовані протоколи можна використовувати з будь-яким методом циклу "
"подій, який підтримує `Streaming Protocols`_."
msgid ""
"``BufferedProtocol`` implementations allow explicit manual allocation and "
"control of the receive buffer. Event loops can then use the buffer provided "
"by the protocol to avoid unnecessary data copies. This can result in "
"noticeable performance improvement for protocols that receive big amounts of "
"data. Sophisticated protocol implementations can significantly reduce the "
"number of buffer allocations."
msgstr ""
"Реалізації ``BufferedProtocol`` дозволяють явно вручну розподіляти та "
"контролювати буфер отримання. Потім цикли подій можуть використовувати "
"буфер, наданий протоколом, щоб уникнути непотрібних копій даних. Це може "
"призвести до помітного підвищення продуктивності для протоколів, які "
"отримують великі обсяги даних. Складні реалізації протоколів можуть значно "
"зменшити кількість розподілів буферів."
msgid ""
"The following callbacks are called on :class:`BufferedProtocol` instances:"
msgstr ""
"Наступні зворотні виклики викликаються в екземплярах :class:"
"`BufferedProtocol`:"
msgid "Called to allocate a new receive buffer."
msgstr "Викликається для виділення нового буфера отримання."
msgid ""
"*sizehint* is the recommended minimum size for the returned buffer. It is "
"acceptable to return smaller or larger buffers than what *sizehint* "
"suggests. When set to -1, the buffer size can be arbitrary. It is an error "
"to return a buffer with a zero size."
msgstr ""
"*sizehint* — рекомендований мінімальний розмір для поверненого буфера. "
"Дозволено повертати менші або більші буфери, ніж пропонує *sizehint*. Якщо "
"встановлено значення -1, розмір буфера може бути довільним. Помилкою є "
"повернення буфера з нульовим розміром."
msgid ""
"``get_buffer()`` must return an object implementing the :ref:`buffer "
"protocol <bufferobjects>`."
msgstr ""
"``get_buffer()`` має повертати об’єкт, що реалізує :ref:`протокол буфера "
"<bufferobjects>`."
msgid "Called when the buffer was updated with the received data."
msgstr "Викликається, коли буфер оновлюється отриманими даними."
msgid "*nbytes* is the total number of bytes that were written to the buffer."
msgstr "*nbytes* — це загальна кількість байтів, які були записані в буфер."
msgid ""
"See the documentation of the :meth:`protocol.eof_received() <Protocol."
"eof_received>` method."
msgstr ""
"Перегляньте документацію методу :meth:`protocol.eof_received() <Protocol."
"eof_received>`."
msgid ""
":meth:`~BufferedProtocol.get_buffer` can be called an arbitrary number of "
"times during a connection. However, :meth:`protocol.eof_received() "
"<Protocol.eof_received>` is called at most once and, if called, :meth:"
"`~BufferedProtocol.get_buffer` and :meth:`~BufferedProtocol.buffer_updated` "
"won't be called after it."
msgstr ""
":meth:`~BufferedProtocol.get_buffer` можна викликати довільну кількість "
"разів під час з’єднання. Однак :meth:`protocol.eof_received() <Protocol."
"eof_received>` викликається щонайбільше один раз, і, якщо буде викликано, :"
"meth:`~BufferedProtocol.get_buffer` і :meth:`~BufferedProtocol."
"buffer_updated` не будуть викликатися після нього."
msgid ""
"start -> connection_made\n"
" [-> get_buffer\n"
" [-> buffer_updated]?\n"
" ]*\n"
" [-> eof_received]?\n"
"-> connection_lost -> end"
msgstr ""
msgid "Datagram Protocols"
msgstr "Протоколи дейтаграм"
msgid ""
"Datagram Protocol instances should be constructed by protocol factories "
"passed to the :meth:`loop.create_datagram_endpoint` method."
msgstr ""
"Екземпляри протоколу дейтаграм мають бути створені фабриками протоколів, "
"переданими в метод :meth:`loop.create_datagram_endpoint`."
msgid ""
"Called when a datagram is received. *data* is a bytes object containing the "
"incoming data. *addr* is the address of the peer sending the data; the "
"exact format depends on the transport."
msgstr ""
"Викликається, коли отримано дейтаграму. *data* — це об’єкт bytes, що містить "
"вхідні дані. *addr* — це адреса вузла, який надсилає дані; точний формат "
"залежить від транспорту."
msgid ""
"Called when a previous send or receive operation raises an :class:"
"`OSError`. *exc* is the :class:`OSError` instance."
msgstr ""