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