@@ -19,267 +19,26 @@ msgstr ""
1919
2020#: ../../library/asynchat.rst:2
2121msgid ":mod:`!asynchat` --- Asynchronous socket command/response handler"
22- msgstr ""
22+ msgstr ":mod:`!asynchat` --- 비동기 소켓 명령/응답 처리기 "
2323
2424#: ../../library/asynchat.rst:10
2525msgid ""
2626"This module is no longer part of the Python standard library. It was "
2727":ref:`removed in Python 3.12 <whatsnew312-removed>` after being "
2828"deprecated in Python 3.6. The removal was decided in :pep:`594`."
2929msgstr ""
30+ "이 모듈은 더는 파이썬 표준 라이브러리에 포함되지 않습니다. 파이썬 3.6 에서 폐지된 후 :ref:`파이썬 3.12 에서 제거 "
31+ "<whatsnew312-removed>`\\ 되었습니다. 제거는 :pep:`594` 에서 결정되었습니다."
3032
3133#: ../../library/asynchat.rst:14
3234msgid "Applications should use the :mod:`asyncio` module instead."
33- msgstr ""
35+ msgstr "응용은 대신 :mod:`asyncio` 모듈을 사용해야 합니다. "
3436
3537#: ../../library/asynchat.rst:16
3638msgid ""
3739"The last version of Python that provided the :mod:`!asynchat` module was "
3840"`Python 3.11 <https://docs.python.org/3.11/library/asynchat.html>`_."
3941msgstr ""
40-
41- #~ msgid ":mod:`asynchat` --- Asynchronous socket command/response handler"
42- #~ msgstr ""
43-
44- #~ msgid "**Source code:** :source:`Lib/asynchat.py`"
45- #~ msgstr ""
46-
47- #~ msgid "Please use :mod:`asyncio` instead."
48- #~ msgstr ""
49-
50- #~ msgid ""
51- #~ "This module exists for backwards "
52- #~ "compatibility only. For new code we "
53- #~ "recommend using :mod:`asyncio`."
54- #~ msgstr ""
55-
56- #~ msgid ""
57- #~ "This module builds on the "
58- #~ ":mod:`asyncore` infrastructure, simplifying "
59- #~ "asynchronous clients and servers and "
60- #~ "making it easier to handle protocols "
61- #~ "whose elements are terminated by "
62- #~ "arbitrary strings, or are of variable"
63- #~ " length. :mod:`asynchat` defines the "
64- #~ "abstract class :class:`async_chat` that you"
65- #~ " subclass, providing implementations of the"
66- #~ " :meth:`collect_incoming_data` and "
67- #~ ":meth:`found_terminator` methods. It uses the"
68- #~ " same asynchronous loop as :mod:`asyncore`,"
69- #~ " and the two types of channel, "
70- #~ ":class:`asyncore.dispatcher` and "
71- #~ ":class:`asynchat.async_chat`, can freely be "
72- #~ "mixed in the channel map. Typically "
73- #~ "an :class:`asyncore.dispatcher` server channel "
74- #~ "generates new :class:`asynchat.async_chat` channel"
75- #~ " objects as it receives incoming "
76- #~ "connection requests."
77- #~ msgstr ""
78-
79- #~ msgid ""
80- #~ "This class is an abstract subclass "
81- #~ "of :class:`asyncore.dispatcher`. To make "
82- #~ "practical use of the code you must"
83- #~ " subclass :class:`async_chat`, providing "
84- #~ "meaningful :meth:`collect_incoming_data` and "
85- #~ ":meth:`found_terminator` methods. The "
86- #~ ":class:`asyncore.dispatcher` methods can be "
87- #~ "used, although not all make sense "
88- #~ "in a message/response context."
89- #~ msgstr ""
90-
91- #~ msgid ""
92- #~ "Like :class:`asyncore.dispatcher`, :class:`async_chat` "
93- #~ "defines a set of events that are"
94- #~ " generated by an analysis of socket"
95- #~ " conditions after a :c:func:`select` call."
96- #~ " Once the polling loop has been "
97- #~ "started the :class:`async_chat` object's "
98- #~ "methods are called by the event-"
99- #~ "processing framework with no action on"
100- #~ " the part of the programmer."
101- #~ msgstr ""
102-
103- #~ msgid ""
104- #~ "Two class attributes can be modified,"
105- #~ " to improve performance, or possibly "
106- #~ "even to conserve memory."
107- #~ msgstr ""
108-
109- #~ msgid "The asynchronous input buffer size (default ``4096``)."
110- #~ msgstr ""
111-
112- #~ msgid "The asynchronous output buffer size (default ``4096``)."
113- #~ msgstr ""
114-
115- #~ msgid ""
116- #~ "Unlike :class:`asyncore.dispatcher`, :class:`async_chat`"
117- #~ " allows you to define a :abbr:`FIFO"
118- #~ " (first-in, first-out)` queue of "
119- #~ "*producers*. A producer need have only"
120- #~ " one method, :meth:`more`, which should "
121- #~ "return data to be transmitted on "
122- #~ "the channel. The producer indicates "
123- #~ "exhaustion (*i.e.* that it contains no"
124- #~ " more data) by having its "
125- #~ ":meth:`more` method return the empty "
126- #~ "bytes object. At this point the "
127- #~ ":class:`async_chat` object removes the "
128- #~ "producer from the queue and starts "
129- #~ "using the next producer, if any. "
130- #~ "When the producer queue is empty "
131- #~ "the :meth:`handle_write` method does nothing."
132- #~ " You use the channel object's "
133- #~ ":meth:`set_terminator` method to describe how"
134- #~ " to recognize the end of, or an"
135- #~ " important breakpoint in, an incoming "
136- #~ "transmission from the remote endpoint."
137- #~ msgstr ""
138-
139- #~ msgid ""
140- #~ "To build a functioning :class:`async_chat` "
141- #~ "subclass your input methods "
142- #~ ":meth:`collect_incoming_data` and :meth:`found_terminator`"
143- #~ " must handle the data that the "
144- #~ "channel receives asynchronously. The methods"
145- #~ " are described below."
146- #~ msgstr ""
147-
148- #~ msgid ""
149- #~ "Pushes a ``None`` on to the "
150- #~ "producer queue. When this producer is"
151- #~ " popped off the queue it causes "
152- #~ "the channel to be closed."
153- #~ msgstr ""
154-
155- #~ msgid ""
156- #~ "Called with *data* holding an arbitrary"
157- #~ " amount of received data. The "
158- #~ "default method, which must be "
159- #~ "overridden, raises a :exc:`NotImplementedError` "
160- #~ "exception."
161- #~ msgstr ""
162-
163- #~ msgid ""
164- #~ "In emergencies this method will discard"
165- #~ " any data held in the input "
166- #~ "and/or output buffers and the producer"
167- #~ " queue."
168- #~ msgstr ""
169-
170- #~ msgid ""
171- #~ "Called when the incoming data stream"
172- #~ " matches the termination condition set "
173- #~ "by :meth:`set_terminator`. The default method,"
174- #~ " which must be overridden, raises a"
175- #~ " :exc:`NotImplementedError` exception. The "
176- #~ "buffered input data should be available"
177- #~ " via an instance attribute."
178- #~ msgstr ""
179-
180- #~ msgid "Returns the current terminator for the channel."
181- #~ msgstr ""
182-
183- #~ msgid ""
184- #~ "Pushes data on to the channel's "
185- #~ "queue to ensure its transmission. This"
186- #~ " is all you need to do to "
187- #~ "have the channel write the data "
188- #~ "out to the network, although it is"
189- #~ " possible to use your own producers"
190- #~ " in more complex schemes to implement"
191- #~ " encryption and chunking, for example."
192- #~ msgstr ""
193-
194- #~ msgid ""
195- #~ "Takes a producer object and adds "
196- #~ "it to the producer queue associated "
197- #~ "with the channel. When all "
198- #~ "currently-pushed producers have been "
199- #~ "exhausted the channel will consume this"
200- #~ " producer's data by calling its "
201- #~ ":meth:`more` method and send the data"
202- #~ " to the remote endpoint."
203- #~ msgstr ""
204-
205- #~ msgid ""
206- #~ "Sets the terminating condition to be "
207- #~ "recognized on the channel. ``term`` may"
208- #~ " be any of three types of "
209- #~ "value, corresponding to three different "
210- #~ "ways to handle incoming protocol data."
211- #~ msgstr ""
212-
213- #~ msgid "term"
214- #~ msgstr ""
215-
216- #~ msgid "Description"
217- #~ msgstr ""
218-
219- #~ msgid "*string*"
220- #~ msgstr ""
221-
222- #~ msgid ""
223- #~ "Will call :meth:`found_terminator` when the"
224- #~ " string is found in the input "
225- #~ "stream"
226- #~ msgstr ""
227-
228- #~ msgid "*integer*"
229- #~ msgstr ""
230-
231- #~ msgid ""
232- #~ "Will call :meth:`found_terminator` when the"
233- #~ " indicated number of characters have "
234- #~ "been received"
235- #~ msgstr ""
236-
237- #~ msgid "``None``"
238- #~ msgstr ""
239-
240- #~ msgid "The channel continues to collect data forever"
241- #~ msgstr ""
242-
243- #~ msgid ""
244- #~ "Note that any data following the "
245- #~ "terminator will be available for reading"
246- #~ " by the channel after "
247- #~ ":meth:`found_terminator` is called."
248- #~ msgstr ""
249-
250- #~ msgid "asynchat Example"
251- #~ msgstr ""
252-
253- #~ msgid ""
254- #~ "The following partial example shows how"
255- #~ " HTTP requests can be read with "
256- #~ ":class:`async_chat`. A web server might "
257- #~ "create an :class:`http_request_handler` object "
258- #~ "for each incoming client connection. "
259- #~ "Notice that initially the channel "
260- #~ "terminator is set to match the "
261- #~ "blank line at the end of the "
262- #~ "HTTP headers, and a flag indicates "
263- #~ "that the headers are being read."
264- #~ msgstr ""
265-
266- #~ msgid ""
267- #~ "Once the headers have been read, "
268- #~ "if the request is of type POST "
269- #~ "(indicating that further data are "
270- #~ "present in the input stream) then "
271- #~ "the ``Content-Length:`` header is used"
272- #~ " to set a numeric terminator to "
273- #~ "read the right amount of data from"
274- #~ " the channel."
275- #~ msgstr ""
276-
277- #~ msgid ""
278- #~ "The :meth:`handle_request` method is called"
279- #~ " once all relevant input has been "
280- #~ "marshalled, after setting the channel "
281- #~ "terminator to ``None`` to ensure that"
282- #~ " any extraneous data sent by the "
283- #~ "web client are ignored. ::"
284- #~ msgstr ""
42+ ":mod:`!asynchat` 모듈을 제공한 마지막 파이썬 버전은 `파이썬 3.11 "
43+ "<https://docs.python.org/ko/3.11/library/asynchat.html>`_ 입니다."
28544
0 commit comments