@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.7\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2020-02-10 04:47 +0000\n "
14
+ "POT-Creation-Date : 2020-03-21 13:26 +0000\n "
15
15
"PO-Revision-Date : 2019-09-01 03:17+0000\n "
16
16
"Last-Translator : tomo, 2019\n "
17
17
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -295,28 +295,31 @@ msgid ""
295
295
msgstr ""
296
296
297
297
#: ../../library/socketserver.rst:239
298
- msgid "Tell the :meth:`serve_forever` loop to stop and wait until it does."
299
- msgstr ":meth:`serve_forever` ループに停止するように指示し、停止されるまで待ちます。"
298
+ msgid ""
299
+ "Tell the :meth:`serve_forever` loop to stop and wait until it does. "
300
+ ":meth:`shutdown` must be called while :meth:`serve_forever` is running in a "
301
+ "different thread otherwise it will deadlock."
302
+ msgstr ""
300
303
301
- #: ../../library/socketserver.rst:244
304
+ #: ../../library/socketserver.rst:246
302
305
msgid "Clean up the server. May be overridden."
303
306
msgstr "サーバをクリーンアップします。上書き出来ます。"
304
307
305
- #: ../../library/socketserver.rst:249
308
+ #: ../../library/socketserver.rst:251
306
309
msgid ""
307
310
"The family of protocols to which the server's socket belongs. Common "
308
311
"examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`."
309
312
msgstr ""
310
313
"サーバのソケットが属しているプロトコルファミリです。一般的な値は :const:`socket.AF_INET` および "
311
314
":const:`socket.AF_UNIX` です。"
312
315
313
- #: ../../library/socketserver.rst:255
316
+ #: ../../library/socketserver.rst:257
314
317
msgid ""
315
318
"The user-provided request handler class; an instance of this class is "
316
319
"created for each request."
317
320
msgstr "ユーザが提供する要求処理クラスです; 要求ごとにこのクラスのインスタンスが生成されます。"
318
321
319
- #: ../../library/socketserver.rst:261
322
+ #: ../../library/socketserver.rst:263
320
323
msgid ""
321
324
"The address on which the server is listening. The format of addresses "
322
325
"varies depending on the protocol family; see the documentation for the "
@@ -325,24 +328,24 @@ msgid ""
325
328
"``('127.0.0.1', 80)``, for example."
326
329
msgstr ""
327
330
328
- #: ../../library/socketserver.rst:270
331
+ #: ../../library/socketserver.rst:272
329
332
msgid ""
330
333
"The socket object on which the server will listen for incoming requests."
331
334
msgstr "サーバが入力の要求待ちを行うためのソケットオブジェクトです。"
332
335
333
- #: ../../library/socketserver.rst:273
336
+ #: ../../library/socketserver.rst:275
334
337
msgid "The server classes support the following class variables:"
335
338
msgstr "サーバクラスは以下のクラス変数をサポートします:"
336
339
337
- #: ../../library/socketserver.rst:279
340
+ #: ../../library/socketserver.rst:281
338
341
msgid ""
339
342
"Whether the server will allow the reuse of an address. This defaults to "
340
343
":const:`False`, and can be set in subclasses to change the policy."
341
344
msgstr ""
342
345
"サーバがアドレスの再使用を許すかどうかを示す値です。この値は標準で :const:`False` "
343
346
"で、サブクラスで再使用ポリシを変更するために設定することができます。"
344
347
345
- #: ../../library/socketserver.rst:285
348
+ #: ../../library/socketserver.rst:287
346
349
msgid ""
347
350
"The size of the request queue. If it takes a long time to process a single "
348
351
"request, any requests that arrive while the server is busy are placed into a"
@@ -354,15 +357,15 @@ msgstr ""
354
357
":attr:`request_queue_size` 個まで待ち行列に置かれます。待ち行列が一杯になると、それ以降のクライアントからの要求は "
355
358
"\" 接続拒否 (Connection denied)\" エラーになります。標準の値は通常 5 ですが、この値はサブクラスで上書きすることができます。"
356
359
357
- #: ../../library/socketserver.rst:294
360
+ #: ../../library/socketserver.rst:296
358
361
msgid ""
359
362
"The type of socket used by the server; :const:`socket.SOCK_STREAM` and "
360
363
":const:`socket.SOCK_DGRAM` are two common values."
361
364
msgstr ""
362
365
"サーバが使うソケットの型です; 一般的な2つの値は、 :const:`socket.SOCK_STREAM` と "
363
366
":const:`socket.SOCK_DGRAM` です。"
364
367
365
- #: ../../library/socketserver.rst:300
368
+ #: ../../library/socketserver.rst:302
366
369
msgid ""
367
370
"Timeout duration, measured in seconds, or :const:`None` if no timeout is "
368
371
"desired. If :meth:`handle_request` receives no incoming requests within the"
@@ -371,7 +374,7 @@ msgstr ""
371
374
"タイムアウト時間(秒)、もしくは、タイムアウトを望まない場合に :const:`None` 。 :meth:`handle_request` "
372
375
"がこの時間内にリクエストを受信しない場合、 :meth:`handle_timeout` メソッドが呼ばれます。"
373
376
374
- #: ../../library/socketserver.rst:305
377
+ #: ../../library/socketserver.rst:307
375
378
msgid ""
376
379
"There are various server methods that can be overridden by subclasses of "
377
380
"base server classes like :class:`TCPServer`; these methods aren't useful to "
@@ -380,13 +383,13 @@ msgstr ""
380
383
":class:`TCPServer` のような基底クラスのサブクラスで上書きできるサーバメソッドは多数あります; "
381
384
"これらのメソッドはサーバオブジェクトの外部のユーザにとっては役にたたないものです。"
382
385
383
- #: ../../library/socketserver.rst:314
386
+ #: ../../library/socketserver.rst:316
384
387
msgid ""
385
388
"Actually processes the request by instantiating :attr:`RequestHandlerClass` "
386
389
"and calling its :meth:`~BaseRequestHandler.handle` method."
387
390
msgstr ""
388
391
389
- #: ../../library/socketserver.rst:320
392
+ #: ../../library/socketserver.rst:322
390
393
msgid ""
391
394
"Must accept a request from the socket, and return a 2-tuple containing the "
392
395
"*new* socket object to be used to communicate with the client, and the "
@@ -395,20 +398,20 @@ msgstr ""
395
398
"ソケットから要求を受理して、クライアントとの通信に使われる *新しい* ソケットオブジェクト、およびクライアントのアドレスからなる、2 "
396
399
"要素のタプルを返します。"
397
400
398
- #: ../../library/socketserver.rst:327
401
+ #: ../../library/socketserver.rst:329
399
402
msgid ""
400
403
"This function is called if the :meth:`~BaseRequestHandler.handle` method of "
401
404
"a :attr:`RequestHandlerClass` instance raises an exception. The default "
402
405
"action is to print the traceback to standard error and continue handling "
403
406
"further requests."
404
407
msgstr ""
405
408
406
- #: ../../library/socketserver.rst:332
409
+ #: ../../library/socketserver.rst:334
407
410
msgid ""
408
411
"Now only called for exceptions derived from the :exc:`Exception` class."
409
412
msgstr ""
410
413
411
- #: ../../library/socketserver.rst:339
414
+ #: ../../library/socketserver.rst:341
412
415
msgid ""
413
416
"This function is called when the :attr:`timeout` attribute has been set to a"
414
417
" value other than :const:`None` and the timeout period has passed with no "
@@ -420,7 +423,7 @@ msgstr ""
420
423
"以外に設定されて、リクエストがないままタイムアウト秒数が過ぎたときに呼ばれます。 "
421
424
"fork型サーバーでのデフォルトの動作は、終了した子プロセスの情報を集めるようになっています。スレッド型サーバーではこのメソッドは何もしません。"
422
425
423
- #: ../../library/socketserver.rst:348
426
+ #: ../../library/socketserver.rst:350
424
427
msgid ""
425
428
"Calls :meth:`finish_request` to create an instance of the "
426
429
":attr:`RequestHandlerClass`. If desired, this function can create a new "
@@ -431,20 +434,20 @@ msgstr ""
431
434
"のインスタンスを生成します。必要なら、この関数から新たなプロセスかスレッドを生成して要求を処理することができます; その処理は "
432
435
":class:`ForkingMixIn` または :class:`ThreadingMixIn` クラスが行います。"
433
436
434
- #: ../../library/socketserver.rst:360
437
+ #: ../../library/socketserver.rst:362
435
438
msgid ""
436
439
"Called by the server's constructor to activate the server. The default "
437
440
"behavior for a TCP server just invokes :meth:`~socket.socket.listen` on the "
438
441
"server's socket. May be overridden."
439
442
msgstr ""
440
443
441
- #: ../../library/socketserver.rst:367
444
+ #: ../../library/socketserver.rst:369
442
445
msgid ""
443
446
"Called by the server's constructor to bind the socket to the desired "
444
447
"address. May be overridden."
445
448
msgstr "サーバのコンストラクタによって呼び出され、適切なアドレスにソケットをバインドします。このメソッドは上書きできます。"
446
449
447
- #: ../../library/socketserver.rst:373
450
+ #: ../../library/socketserver.rst:375
448
451
msgid ""
449
452
"Must return a Boolean value; if the value is :const:`True`, the request will"
450
453
" be processed, and if it's :const:`False`, the request will be denied. This"
@@ -455,31 +458,31 @@ msgstr ""
455
458
"の場合には要求は拒否されます。サーバへのアクセス制御を実装するためにこの関数を上書きすることができます。標準の実装では常に :const:`True` "
456
459
"を返します。"
457
460
458
- #: ../../library/socketserver.rst:379
461
+ #: ../../library/socketserver.rst:381
459
462
msgid ""
460
463
"Support for the :term:`context manager` protocol was added. Exiting the "
461
464
"context manager is equivalent to calling :meth:`server_close`."
462
465
msgstr ""
463
466
464
- #: ../../library/socketserver.rst:385
467
+ #: ../../library/socketserver.rst:387
465
468
msgid "Request Handler Objects"
466
469
msgstr ""
467
470
468
- #: ../../library/socketserver.rst:389
471
+ #: ../../library/socketserver.rst:391
469
472
msgid ""
470
473
"This is the superclass of all request handler objects. It defines the "
471
474
"interface, given below. A concrete request handler subclass must define a "
472
475
"new :meth:`handle` method, and can override any of the other methods. A new"
473
476
" instance of the subclass is created for each request."
474
477
msgstr ""
475
478
476
- #: ../../library/socketserver.rst:398
479
+ #: ../../library/socketserver.rst:400
477
480
msgid ""
478
481
"Called before the :meth:`handle` method to perform any initialization "
479
482
"actions required. The default implementation does nothing."
480
483
msgstr ":meth:`handle` メソッドより前に呼び出され、何らかの必要な初期化処理を行います。標準の実装では何も行いません。"
481
484
482
- #: ../../library/socketserver.rst:404
485
+ #: ../../library/socketserver.rst:406
483
486
msgid ""
484
487
"This function must do all the work required to service a request. The "
485
488
"default implementation does nothing. Several instance attributes are "
@@ -492,14 +495,14 @@ msgstr ""
492
495
":attr:`self.client_address` です; そしてサーバごとの情報にアクセスする場合には、サーバインスタンスを "
493
496
":attr:`self.server` で取得できます。"
494
497
495
- #: ../../library/socketserver.rst:410
498
+ #: ../../library/socketserver.rst:412
496
499
msgid ""
497
500
"The type of :attr:`self.request` is different for datagram or stream "
498
501
"services. For stream services, :attr:`self.request` is a socket object; for"
499
502
" datagram services, :attr:`self.request` is a pair of string and socket."
500
503
msgstr ""
501
504
502
- #: ../../library/socketserver.rst:417
505
+ #: ../../library/socketserver.rst:419
503
506
msgid ""
504
507
"Called after the :meth:`handle` method to perform any clean-up actions "
505
508
"required. The default implementation does nothing. If :meth:`setup` raises"
@@ -508,7 +511,7 @@ msgstr ""
508
511
":meth:`handle` メソッドより後に呼び出され、何らかの必要なクリーンアップ処理を行います。標準の実装では何も行いません。 "
509
512
":meth:`setup` メソッドが例外を送出した場合、このメソッドは呼び出されません。"
510
513
511
- #: ../../library/socketserver.rst:425
514
+ #: ../../library/socketserver.rst:427
512
515
msgid ""
513
516
"These :class:`BaseRequestHandler` subclasses override the "
514
517
":meth:`~BaseRequestHandler.setup` and :meth:`~BaseRequestHandler.finish` "
@@ -517,41 +520,41 @@ msgid ""
517
520
"written, respectively, to get the request data or return data to the client."
518
521
msgstr ""
519
522
520
- #: ../../library/socketserver.rst:432
523
+ #: ../../library/socketserver.rst:434
521
524
msgid ""
522
525
"The :attr:`rfile` attributes of both classes support the "
523
526
":class:`io.BufferedIOBase` readable interface, and "
524
527
":attr:`DatagramRequestHandler.wfile` supports the :class:`io.BufferedIOBase`"
525
528
" writable interface."
526
529
msgstr ""
527
530
528
- #: ../../library/socketserver.rst:437
531
+ #: ../../library/socketserver.rst:439
529
532
msgid ""
530
533
":attr:`StreamRequestHandler.wfile` also supports the "
531
534
":class:`io.BufferedIOBase` writable interface."
532
535
msgstr ""
533
536
534
- #: ../../library/socketserver.rst:443
537
+ #: ../../library/socketserver.rst:445
535
538
msgid "Examples"
536
539
msgstr "使用例"
537
540
538
- #: ../../library/socketserver.rst:446
541
+ #: ../../library/socketserver.rst:448
539
542
msgid ":class:`socketserver.TCPServer` Example"
540
543
msgstr ":class:`socketserver.TCPServer` の例"
541
544
542
- #: ../../library/socketserver.rst:448 ../../library/socketserver.rst:547
545
+ #: ../../library/socketserver.rst:450 ../../library/socketserver.rst:549
543
546
msgid "This is the server side::"
544
547
msgstr "サーバサイドの例です::"
545
548
546
- #: ../../library/socketserver.rst:478
549
+ #: ../../library/socketserver.rst:480
547
550
msgid ""
548
551
"An alternative request handler class that makes use of streams (file-like "
549
552
"objects that simplify communication by providing the standard file "
550
553
"interface)::"
551
554
msgstr ""
552
555
"別の、ストリーム(標準のファイル型のインタフェースを利用して通信をシンプルにしたファイルライクオブジェクト)を使うリクエストハンドラクラスの例です::"
553
556
554
- #: ../../library/socketserver.rst:493
557
+ #: ../../library/socketserver.rst:495
555
558
msgid ""
556
559
"The difference is that the ``readline()`` call in the second handler will "
557
560
"call ``recv()`` multiple times until it encounters a newline character, "
@@ -561,49 +564,49 @@ msgstr ""
561
564
"先ほどとの違いは、``readline()`` の呼び出しが、改行を受け取るまで ``recv()`` を複数回呼び出すことです。1回の "
562
565
"``recv()`` の呼び出しは、クライアントから1回の ``sendall()`` 呼び出しで送信された分しか受け取りません。"
563
566
564
- #: ../../library/socketserver.rst:499 ../../library/socketserver.rst:571
567
+ #: ../../library/socketserver.rst:501 ../../library/socketserver.rst:573
565
568
msgid "This is the client side::"
566
569
msgstr "クライアントサイドの例::"
567
570
568
- #: ../../library/socketserver.rst:520 ../../library/socketserver.rst:646
571
+ #: ../../library/socketserver.rst:522 ../../library/socketserver.rst:648
569
572
msgid "The output of the example should look something like this:"
570
573
msgstr "この例の出力は次のようになります:"
571
574
572
- #: ../../library/socketserver.rst:522
575
+ #: ../../library/socketserver.rst:524
573
576
msgid "Server:"
574
577
msgstr ""
575
578
576
- #: ../../library/socketserver.rst:532
579
+ #: ../../library/socketserver.rst:534
577
580
msgid "Client:"
578
581
msgstr ""
579
582
580
- #: ../../library/socketserver.rst:545
583
+ #: ../../library/socketserver.rst:547
581
584
msgid ":class:`socketserver.UDPServer` Example"
582
585
msgstr ":class:`socketserver.UDPServer` の例"
583
586
584
- #: ../../library/socketserver.rst:590
587
+ #: ../../library/socketserver.rst:592
585
588
msgid ""
586
589
"The output of the example should look exactly like for the TCP server "
587
590
"example."
588
591
msgstr "この例の出力は、TCPサーバーの例と全く同じようになります。"
589
592
590
- #: ../../library/socketserver.rst:594
593
+ #: ../../library/socketserver.rst:596
591
594
msgid "Asynchronous Mixins"
592
595
msgstr "非同期処理の Mix-in"
593
596
594
- #: ../../library/socketserver.rst:596
597
+ #: ../../library/socketserver.rst:598
595
598
msgid ""
596
599
"To build asynchronous handlers, use the :class:`ThreadingMixIn` and "
597
600
":class:`ForkingMixIn` classes."
598
601
msgstr ""
599
602
"複数の接続を非同期に処理するハンドラを作るには、 :class:`ThreadingMixIn` か :class:`ForkingMixIn` "
600
603
"クラスを利用します。"
601
604
602
- #: ../../library/socketserver.rst:599
605
+ #: ../../library/socketserver.rst:601
603
606
msgid "An example for the :class:`ThreadingMixIn` class::"
604
607
msgstr ":class:`ThreadingMixIn` クラスの利用例::"
605
608
606
- #: ../../library/socketserver.rst:657
609
+ #: ../../library/socketserver.rst:659
607
610
msgid ""
608
611
"The :class:`ForkingMixIn` class is used in the same way, except that the "
609
612
"server will spawn a new process for each request. Available only on POSIX "
0 commit comments