PageRenderTime 32ms CodeModel.GetById 13ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 1ms

/locale/ja/LC_MESSAGES/library/socket.po

https://bitbucket.org/pydocja/py33
Portable Object | 1669 lines | 1470 code | 199 blank | 0 comment | 0 complexity | 12c854caa4679aa02bb96e8c20e36467 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1# SOME DESCRIPTIVE TITLE.
  2# Copyright (C) 1990-2013, Python Software Foundation
  3# This file is distributed under the same license as the Python package.
  4# 
  5# Translators:
  6# ryosuke.mondo <ryosuke.mondo@gmail.com>, 2012
  7msgid ""
  8msgstr ""
  9"Project-Id-Version: (Deprecated)Python Document Japanese\n"
 10"Report-Msgid-Bugs-To: \n"
 11"POT-Creation-Date: 2013-12-30 03:15+0900\n"
 12"PO-Revision-Date: 2014-01-07 09:40+0000\n"
 13"Last-Translator: Naoki INADA <songofacandy@gmail.com>\n"
 14"Language-Team: Japanese (http://www.transifex.com/projects/p/python-doc-ja/language/ja/)\n"
 15"MIME-Version: 1.0\n"
 16"Content-Type: text/plain; charset=UTF-8\n"
 17"Content-Transfer-Encoding: 8bit\n"
 18"Language: ja\n"
 19"Plural-Forms: nplurals=1; plural=0;\n"
 20
 21# 0236b58df588443eb76a12ea95636e8d
 22#: ../../library/socket.rst:2
 23msgid ":mod:`socket` --- Low-level networking interface"
 24msgstr ":mod:`socket` --- 低レベルネットワークインターフェース"
 25
 26# 39ac663abd6946c1acad4bb1e2679a2b
 27#: ../../library/socket.rst:8
 28msgid ""
 29"This module provides access to the BSD *socket* interface. It is available "
 30"on all modern Unix systems, Windows, MacOS, OS/2, and probably additional "
 31"platforms."
 32msgstr "このモジュールは、PythonでBSD *ソケット(socket)* インターフェースを利用するために使用します。最近のUnixシステム、Windows, Max OS X, BeOS, OS/2など、多くのプラットフォームで利用可能です。"
 33
 34# 718a821c9d5f40348031abc067c5616c
 35#: ../../library/socket.rst:14
 36msgid ""
 37"Some behavior may be platform dependent, since calls are made to the "
 38"operating system socket APIs."
 39msgstr "いくつかの振る舞いはプラットフォームに依存します。オペレーティングシステムのソケットAPIを呼び出しているためです。"
 40
 41# ca7b34c1b7d240388581b066ca7b1a48
 42#: ../../library/socket.rst:19
 43msgid ""
 44"The Python interface is a straightforward transliteration of the Unix system"
 45" call and library interface for sockets to Python's object-oriented style: "
 46"the :func:`.socket` function returns a :dfn:`socket object` whose methods "
 47"implement the various socket system calls.  Parameter types are somewhat "
 48"higher-level than in the C interface: as with :meth:`read` and :meth:`write`"
 49" operations on Python files, buffer allocation on receive operations is "
 50"automatic, and buffer length is implicit on send operations."
 51msgstr ""
 52
 53# e0c20439c0164148aad4d48a4ca7d254
 54#: ../../library/socket.rst:31
 55msgid "Module :mod:`socketserver`"
 56msgstr ""
 57
 58# efec016c2eff4baab798422bb99ef14a
 59#: ../../library/socket.rst:31
 60msgid "Classes that simplify writing network servers."
 61msgstr "ネットワークサーバの開発を省力化するためのクラス群。"
 62
 63# 989e5cb4de5e4315a9114f887158f0c1
 64#: ../../library/socket.rst:33
 65msgid "Module :mod:`ssl`"
 66msgstr ""
 67
 68# 6c189024ffc94750bf12dc9d670119e3
 69#: ../../library/socket.rst:34
 70msgid "A TLS/SSL wrapper for socket objects."
 71msgstr "ソケットオブジェクトに対する TLS/SSL ラッパー."
 72
 73# 00a4d609e3e8483da087b231047ed51c
 74#: ../../library/socket.rst:38
 75msgid "Socket families"
 76msgstr "ソケットファミリー"
 77
 78# 08f038c8dba14eedb2fcebc97d071090
 79#: ../../library/socket.rst:40
 80msgid ""
 81"Depending on the system and the build options, various socket families are "
 82"supported by this module."
 83msgstr "どのシステムで実行するかとビルドオプションに依存しますが、このモジュールによって多様なソケットファミリーをサポートします。"
 84
 85# 6addf586f996425cb91b8dea853c5e7c
 86#: ../../library/socket.rst:43
 87msgid ""
 88"The address format required by a particular socket object is automatically "
 89"selected based on the address family specified when the socket object was "
 90"created.  Socket addresses are represented as follows:"
 91msgstr "特定のソケットオブジェクトによってはアドレスフォーマットが必要とされますがソケットオブジェクトが生成されたときに指定されたアドレスファミリーを元に自動的に選択します。ソケットアドレスについては次の通りです:"
 92
 93# 3fa272622cd04224a788ad32e0fc01c6
 94#: ../../library/socket.rst:47
 95msgid ""
 96"The address of an :const:`AF_UNIX` socket bound to a file system node is "
 97"represented as a string, using the file system encoding and the "
 98"``'surrogateescape'`` error handler (see :pep:`383`).  An address in Linux's"
 99" abstract namespace is returned as a :class:`bytes` object with an initial "
100"null byte; note that sockets in this namespace can communicate with normal "
101"file system sockets, so programs intended to run on Linux may need to deal "
102"with both types of address.  A string or :class:`bytes` object can be used "
103"for either type of address when passing it as an argument."
104msgstr ""
105
106# 9839710817f94ceaaac5863b76436945
107# 7bd17ebd489b4cfa9d6c02a271ba933e
108#: ../../library/socket.rst:57 ../../library/socket.rst:57
109msgid ""
110"Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 "
111"encoding."
112msgstr ""
113
114# aec6ff2faa6e469cb726b7391dbb22b1
115#: ../../library/socket.rst:61
116msgid ""
117"A pair ``(host, port)`` is used for the :const:`AF_INET` address family, "
118"where *host* is a string representing either a hostname in Internet domain "
119"notation like ``'daring.cwi.nl'`` or an IPv4 address like "
120"``'100.50.200.5'``, and *port* is an integer."
121msgstr ""
122
123# 8b2cdc7122d04792a16dffe89c0077b8
124#: ../../library/socket.rst:66
125msgid ""
126"For :const:`AF_INET6` address family, a four-tuple ``(host, port, flowinfo, "
127"scopeid)`` is used, where *flowinfo* and *scopeid* represent the "
128"``sin6_flowinfo`` and ``sin6_scope_id`` members in :const:`struct "
129"sockaddr_in6` in C.  For :mod:`socket` module methods, *flowinfo* and "
130"*scopeid* can be omitted just for backward compatibility.  Note, however, "
131"omission of *scopeid* can cause problems in manipulating scoped IPv6 "
132"addresses."
133msgstr ""
134
135# 0e2a1a9ff3f94bc184e4dd65ce0a0cf4
136#: ../../library/socket.rst:73
137msgid ""
138":const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``."
139msgstr ""
140
141# 5d42958d185e4699a2671ea9865f37ed
142#: ../../library/socket.rst:75
143msgid ""
144"Linux-only support for TIPC is available using the :const:`AF_TIPC` address "
145"family.  TIPC is an open, non-IP based networked protocol designed for use "
146"in clustered computer environments.  Addresses are represented by a tuple, "
147"and the fields depend on the address type. The general tuple form is "
148"``(addr_type, v1, v2, v3 [, scope])``, where:"
149msgstr ""
150
151# ed9834ecf78143d0bfccee3128289a04
152#: ../../library/socket.rst:81
153msgid ""
154"*addr_type* is one of :const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`, "
155"or :const:`TIPC_ADDR_ID`."
156msgstr ""
157
158# 839d171395dd4e5abec7fa7d19f06416
159#: ../../library/socket.rst:83
160msgid ""
161"*scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, and"
162" :const:`TIPC_NODE_SCOPE`."
163msgstr ""
164
165# 7957cc3c432345f18edd34a599d7ccba
166#: ../../library/socket.rst:85
167msgid ""
168"If *addr_type* is :const:`TIPC_ADDR_NAME`, then *v1* is the server type, "
169"*v2* is the port identifier, and *v3* should be 0."
170msgstr ""
171
172# c903c568e4c743a18376a595f02ada26
173#: ../../library/socket.rst:88
174msgid ""
175"If *addr_type* is :const:`TIPC_ADDR_NAMESEQ`, then *v1* is the server type, "
176"*v2* is the lower port number, and *v3* is the upper port number."
177msgstr ""
178
179# 66c93722656749978b3884ced870def9
180# 3d8854372122489aa178015476388c81
181#: ../../library/socket.rst:91 ../../library/socket.rst:94
182msgid ""
183"If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the "
184"reference, and *v3* should be set to 0."
185msgstr ""
186
187# 866f02d98b2d4b86ab8c25706897e5af
188#: ../../library/socket.rst:97
189msgid ""
190"A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family, "
191"where *interface* is a string representing a network interface name like "
192"``'can0'``. The network interface name ``''`` can be used to receive packets"
193" from all network interfaces of this family."
194msgstr ""
195
196# fc3c4663cfb9404eabf6c14fe10f8a5b
197#: ../../library/socket.rst:102
198msgid ""
199"A string or a tuple ``(id, unit)`` is used for the :const:`SYSPROTO_CONTROL`"
200" protocol of the :const:`PF_SYSTEM` family. The string is the name of a "
201"kernel control using a dynamically-assigned ID. The tuple can be used if ID "
202"and unit number of the kernel control are known or if a registered ID is "
203"used."
204msgstr ""
205
206# 2479e37fd40c408e969e04c6e8e8a6d3
207#: ../../library/socket.rst:110
208msgid ""
209"Certain other address families (:const:`AF_BLUETOOTH`, :const:`AF_PACKET`) "
210"support specific representations."
211msgstr ""
212
213# 3226490d328442d98e294780fdb05429
214#: ../../library/socket.rst:115
215msgid ""
216"For IPv4 addresses, two special forms are accepted instead of a host "
217"address: the empty string represents :const:`INADDR_ANY`, and the string "
218"``'<broadcast>'`` represents :const:`INADDR_BROADCAST`.  This behavior is "
219"not compatible with IPv6, therefore, you may want to avoid these if you "
220"intend to support IPv6 with your Python programs."
221msgstr ""
222
223# 0f932973a17e4bafbb65b8560c23553d
224#: ../../library/socket.rst:121
225msgid ""
226"If you use a hostname in the *host* portion of IPv4/v6 socket address, the "
227"program may show a nondeterministic behavior, as Python uses the first "
228"address returned from the DNS resolution.  The socket address will be "
229"resolved differently into an actual IPv4/v6 address, depending on the "
230"results from DNS resolution and/or the host configuration.  For "
231"deterministic behavior use a numeric address in *host* portion."
232msgstr "IPv4/v6ソケットの *host* 部にホスト名を指定すると、処理結果が一定ではない場合があります。これはPythonはDNSから取得したアドレスのうち最初のアドレスを使用するので、 DNSの処理やホストの設定によって異なるIPv4/6アドレスを取得する場合があるためです。常に同じ結果が必要であれば、 *host* に数値のアドレスを指定してください。"
233
234# 5f5a26b7db4a488d8b94af1ba28b351d
235#: ../../library/socket.rst:128
236msgid ""
237"All errors raise exceptions.  The normal exceptions for invalid argument "
238"types and out-of-memory conditions can be raised; starting from Python 3.3, "
239"errors related to socket or address semantics raise :exc:`OSError` or one of"
240" its subclasses (they used to raise :exc:`socket.error`)."
241msgstr ""
242
243# c95723e1a2b44d98b69d8d89a621cb21
244#: ../../library/socket.rst:133
245msgid ""
246"Non-blocking mode is supported through :meth:`~socket.setblocking`.  A "
247"generalization of this based on timeouts is supported through "
248":meth:`~socket.settimeout`."
249msgstr ":meth:`~socket.setblocking` メソッドで、非ブロッキングモードを使用することができます。また、より汎用的に :meth:`~socket.settimeout` メソッドでタイムアウトを指定する事ができます。"
250
251# c774f0944c484502bf96c2b5ce07ce68
252#: ../../library/socket.rst:139
253msgid "Module contents"
254msgstr "モジュールの内容"
255
256# 7cd19c82a9bb4fe2bd40d368acf19240
257#: ../../library/socket.rst:141
258msgid "The module :mod:`socket` exports the following elements."
259msgstr ""
260
261# 794c39a39a3941119d1c606ae090be58
262#: ../../library/socket.rst:145
263msgid "Exceptions"
264msgstr "例外"
265
266# c3194afd41c8423bb4d47c74ab0ba35d
267#: ../../library/socket.rst:149
268msgid "A deprecated alias of :exc:`OSError`."
269msgstr ""
270
271# ef4928f7db6c41e78c390b16f15e07a7
272# 71118ae47376428ea68fb8120ad9b859
273#: ../../library/socket.rst:151 ../../library/socket.rst:151
274msgid "Following :pep:`3151`, this class was made an alias of :exc:`OSError`."
275msgstr ""
276
277# 3923e5f10d4749e2a7acc71ad543d14a
278#: ../../library/socket.rst:157
279msgid ""
280"A subclass of :exc:`OSError`, this exception is raised for address-related "
281"errors, i.e. for functions that use *h_errno* in the POSIX C API, including "
282":func:`gethostbyname_ex` and :func:`gethostbyaddr`. The accompanying value "
283"is a pair ``(h_errno, string)`` representing an error returned by a library "
284"call.  *h_errno* is a numeric value, while *string* represents the "
285"description of *h_errno*, as returned by the :c:func:`hstrerror` C function."
286msgstr ""
287
288# 4d701008711d49ed86e19fc540460417
289# d1ec22a46ee243f9b8111d39c3c1d43e
290# e2650f492cb14c8b84978b65ae8f7612
291# 0400c4612d67460ab25c7ae831d3aea9
292# d8fb49a1279e46f3855348b4ff60dea4
293# 02b3273a18384a169b13238f572826cf
294#: ../../library/socket.rst:165 ../../library/socket.rst:165
295#: ../../library/socket.rst:178 ../../library/socket.rst:178
296#: ../../library/socket.rst:189 ../../library/socket.rst:189
297msgid "This class was made a subclass of :exc:`OSError`."
298msgstr ""
299
300# b0d65754dfcc40c3b80ddb05161881db
301#: ../../library/socket.rst:170
302msgid ""
303"A subclass of :exc:`OSError`, this exception is raised for address-related "
304"errors by :func:`getaddrinfo` and :func:`getnameinfo`. The accompanying "
305"value is a pair ``(error, string)`` representing an error returned by a "
306"library call.  *string* represents the description of *error*, as returned "
307"by the :c:func:`gai_strerror` C function.  The numeric *error* value will "
308"match one of the :const:`EAI_\\*` constants defined in this module."
309msgstr ""
310
311# 1b58db6b4f21479aa49e62800ec4be1c
312#: ../../library/socket.rst:183
313msgid ""
314"A subclass of :exc:`OSError`, this exception is raised when a timeout occurs"
315" on a socket which has had timeouts enabled via a prior call to "
316":meth:`~socket.settimeout` (or implicitly through "
317":func:`~socket.setdefaulttimeout`).  The accompanying value is a string "
318"whose value is currently always \"timed out\"."
319msgstr ""
320
321# 35283adb7130476e834a20e97ad0da33
322#: ../../library/socket.rst:194
323msgid "Constants"
324msgstr "定数"
325
326# b0a4f1d27da446b48f1fcea348ecbf78
327#: ../../library/socket.rst:200
328msgid ""
329"These constants represent the address (and protocol) families, used for the "
330"first argument to :func:`.socket`.  If the :const:`AF_UNIX` constant is not "
331"defined then this protocol is unsupported.  More constants may be available "
332"depending on the system."
333msgstr ""
334
335# 3e241f0c8fdd4c2bad50d8974eb4a4df
336#: ../../library/socket.rst:212
337msgid ""
338"These constants represent the socket types, used for the second argument to "
339":func:`.socket`.  More constants may be available depending on the system. "
340"(Only :const:`SOCK_STREAM` and :const:`SOCK_DGRAM` appear to be generally "
341"useful.)"
342msgstr ""
343
344# d03f8b97cc2c4fb6ba04feef70ccfe61
345#: ../../library/socket.rst:220
346msgid ""
347"These two constants, if defined, can be combined with the socket types and "
348"allow you to set some flags atomically (thus avoiding possible race "
349"conditions and the need for separate calls)."
350msgstr ""
351
352# 3e4f897695cb44978c610ec567f67005
353#: ../../library/socket.rst:226
354msgid ""
355"`Secure File Descriptor Handling "
356"<http://udrepper.livejournal.com/20407.html>`_ for a more thorough "
357"explanation."
358msgstr ""
359
360# 0666bebc969947ac8b299f164398a3c6
361#: ../../library/socket.rst:229
362msgid "Availability: Linux >= 2.6.27."
363msgstr ""
364
365# 9cf14a3caa5c48d3b25208f963ed065a
366#: ../../library/socket.rst:248
367msgid ""
368"Many constants of these forms, documented in the Unix documentation on "
369"sockets and/or the IP protocol, are also defined in the socket module. They "
370"are generally used in arguments to the :meth:`setsockopt` and "
371":meth:`getsockopt` methods of socket objects.  In most cases, only those "
372"symbols that are defined in the Unix header files are defined; for a few "
373"symbols, default values are provided."
374msgstr "Unixのソケット・IPプロトコルのドキュメントで定義されている各種定数。ソケットオブジェクトの :meth:`setsockopt` や :meth:`getsockopt` で使用します。ほとんどのシンボルはUnixのヘッダファイルに従っています。一部のシンボルには、デフォルト値を定義してあります。"
375
376# a8b7601b2a574d7ba229aa1ca6215fc0
377# eb8f2abf858f49178a923f807b693c76
378#: ../../library/socket.rst:260 ../../library/socket.rst:273
379msgid ""
380"Many constants of these forms, documented in the Linux documentation, are "
381"also defined in the socket module."
382msgstr ""
383
384# 4d0156314e434366bb56040b9bc9f745
385#: ../../library/socket.rst:263
386msgid "Availability: Linux >= 2.6.25."
387msgstr ""
388
389# 67717c2e6b6d4b038be2b9a11d90cd81
390#: ../../library/socket.rst:276
391msgid "Availability: Linux >= 2.6.30."
392msgstr ""
393
394# 5331acc939604d8e90d4581ef08eebe7
395#: ../../library/socket.rst:284
396msgid ""
397"Constants for Windows' WSAIoctl(). The constants are used as arguments to "
398"the :meth:`~socket.socket.ioctl` method of socket objects."
399msgstr ""
400
401# 616e56fdfc4b4448becdf7a72750d6b8
402#: ../../library/socket.rst:290
403msgid ""
404"TIPC related constants, matching the ones exported by the C socket API. See "
405"the TIPC documentation for more information."
406msgstr "TIPC関連の定数で、CのソケットAPIが公開しているものにマッチします。詳しい情報はTIPCのドキュメントを参照してください。"
407
408# 25af97962a14423a9892e71de631222f
409#: ../../library/socket.rst:296
410msgid ""
411"This constant contains a boolean value which indicates if IPv6 is supported "
412"on this platform."
413msgstr "現在のプラットフォームでIPv6がサポートされているか否かを示す真偽値。"
414
415# 362a45435dec4d58bd5fea524321365c
416#: ../../library/socket.rst:301
417msgid "Functions"
418msgstr "関数"
419
420# 835ebd3f13df480f89912e958e4d7d81
421#: ../../library/socket.rst:304
422msgid "Creating sockets"
423msgstr ""
424
425# 753ee6a7680b4931ae38bc074cb63167
426#: ../../library/socket.rst:306
427msgid ""
428"The following functions all create :ref:`socket objects <socket-objects>`."
429msgstr ""
430
431# 01fd05421dde4008ad2fbe3acd359b22
432#: ../../library/socket.rst:311
433msgid ""
434"Create a new socket using the given address family, socket type and protocol"
435" number.  The address family should be :const:`AF_INET` (the default), "
436":const:`AF_INET6`, :const:`AF_UNIX`, :const:`AF_CAN` or :const:`AF_RDS`. The"
437" socket type should be :const:`SOCK_STREAM` (the default), "
438":const:`SOCK_DGRAM`, :const:`SOCK_RAW` or perhaps one of the other ``SOCK_``"
439" constants. The protocol number is usually zero and may be omitted in that "
440"case or :const:`CAN_RAW` in case the address family is :const:`AF_CAN`."
441msgstr ""
442
443# 3401694d32bb4f9081d0274ac0c79ac1
444# c27cbef8d1094640ac3057b51518b17f
445#: ../../library/socket.rst:319 ../../library/socket.rst:319
446msgid "The AF_CAN family was added. The AF_RDS family was added."
447msgstr ""
448
449# 152d725f41544ad6ad60b98bc9b546c3
450#: ../../library/socket.rst:326
451msgid ""
452"Build a pair of connected socket objects using the given address family, "
453"socket type, and protocol number.  Address family, socket type, and protocol"
454" number are as for the :func:`.socket` function above. The default family is"
455" :const:`AF_UNIX` if defined on the platform; otherwise, the default is "
456":const:`AF_INET`. Availability: Unix."
457msgstr ""
458
459# f043ae2a027d42348c1cf94a789360d1
460# 29e4cd5fc3f14c4482de1c86601cbcf3
461#: ../../library/socket.rst:332 ../../library/socket.rst:332
462msgid ""
463"The returned socket objects now support the whole socket API, rather than a "
464"subset."
465msgstr ""
466
467# 449eb6e3756e4738b87c8cbf7e881f9a
468#: ../../library/socket.rst:339
469msgid ""
470"Connect to a TCP service listening on the Internet *address* (a 2-tuple "
471"``(host, port)``), and return the socket object.  This is a higher-level "
472"function than :meth:`socket.connect`: if *host* is a non-numeric hostname, "
473"it will try to resolve it for both :data:`AF_INET` and :data:`AF_INET6`, and"
474" then try to connect to all possible addresses in turn until a connection "
475"succeeds.  This makes it easy to write clients that are compatible to both "
476"IPv4 and IPv6."
477msgstr ""
478
479# cdb44a8c3cdf4796a12d7b3d187a6eb3
480#: ../../library/socket.rst:347
481msgid ""
482"Passing the optional *timeout* parameter will set the timeout on the socket "
483"instance before attempting to connect.  If no *timeout* is supplied, the "
484"global default timeout setting returned by :func:`getdefaulttimeout` is "
485"used."
486msgstr ""
487
488# dc53c6683e1d4da78e5f7fc3743a78a2
489#: ../../library/socket.rst:352
490msgid ""
491"If supplied, *source_address* must be a 2-tuple ``(host, port)`` for the "
492"socket to bind to as its source address before connecting.  If host or port "
493"are '' or 0 respectively the OS default behavior will be used."
494msgstr "*source_address* は接続する前にバインドするソースアドレスを指定するオプション引数で、指定する場合は ``(host, port)`` の2要素タプルでなければなりません。 host や port が '' か 0 だった場合は、OSのデフォルトの動作になります。"
495
496# cb83de96360d4e0c99b8102107afcc2d
497# 1819757f05474ac09855e9cd02b8979c
498#: ../../library/socket.rst:356 ../../library/socket.rst:356
499msgid "*source_address* was added."
500msgstr ""
501
502# 6c9d7f3f9ade4eeea80dfb149ee622b7
503# e130458cea094d21968dc29c97b1a85d
504#: ../../library/socket.rst:359 ../../library/socket.rst:359
505msgid "support for the :keyword:`with` statement was added."
506msgstr ""
507
508# d7d789a65eb54041bdbe10afdd39ee16
509#: ../../library/socket.rst:365
510msgid ""
511"Duplicate the file descriptor *fd* (an integer as returned by a file "
512"object's :meth:`fileno` method) and build a socket object from the result.  "
513"Address family, socket type and protocol number are as for the "
514":func:`.socket` function above. The file descriptor should refer to a "
515"socket, but this is not checked --- subsequent operations on the object may "
516"fail if the file descriptor is invalid. This function is rarely needed, but "
517"can be used to get or set socket options on a socket passed to a program as "
518"standard input or output (such as a server started by the Unix inet daemon)."
519"  The socket is assumed to be in blocking mode."
520msgstr ""
521
522# ca61177b87d54d7793dfde97f4947a00
523#: ../../library/socket.rst:377
524msgid ""
525"Instantiate a socket from data obtained from the :meth:`socket.share` "
526"method.  The socket is assumed to be in blocking mode."
527msgstr ""
528
529# 72a929a423ba4193aa0ab137386f501b
530# 9844d838e42046658498e904bd7478bb
531#: ../../library/socket.rst:380 ../../library/socket.rst:1138
532msgid "Availability: Windows."
533msgstr "利用できる環境: Windows。"
534
535# a4955338259c4563b747e62cf5dbb64c
536#: ../../library/socket.rst:387
537msgid ""
538"This is a Python type object that represents the socket object type. It is "
539"the same as ``type(socket(...))``."
540msgstr "ソケットオブジェクトの型を示す型オブジェクト。 ``type(socket(...))`` と同じです。"
541
542# dbaa8586481843c79efac190a41e8fcd
543#: ../../library/socket.rst:392
544msgid "Other functions"
545msgstr "その他の関数"
546
547# 64e4d449642c45e991258e31301ccd9f
548#: ../../library/socket.rst:394
549msgid "The :mod:`socket` module also offers various network-related services:"
550msgstr ""
551
552# da95fc2fbc8f4abab60e3b277feef5cd
553#: ../../library/socket.rst:399
554msgid ""
555"Translate the *host*/*port* argument into a sequence of 5-tuples that "
556"contain all the necessary arguments for creating a socket connected to that "
557"service. *host* is a domain name, a string representation of an IPv4/v6 "
558"address or ``None``. *port* is a string service name such as ``'http'``, a "
559"numeric port number or ``None``.  By passing ``None`` as the value of *host*"
560" and *port*, you can pass ``NULL`` to the underlying C API."
561msgstr "*host* / *port* 引数の指すアドレス情報を、そのサービスに接続されたソケットを作成するために必要な全ての引数が入った 5 要素のタプルに変換します。 *host* はドメイン名、IPv4/v6アドレスの文字列、または ``None`` です。 *port* は ``'http'`` のようなサービス名文字列、ポート番号を表す数値、または ``None`` です。 *host* と *port* に ``None`` を指定すると C APIに ``NULL`` を渡せます。"
562
563# 489143df472e4e859ef3ab7f529b9a80
564#: ../../library/socket.rst:406
565msgid ""
566"The *family*, *type* and *proto* arguments can be optionally specified in "
567"order to narrow the list of addresses returned.  Passing zero as a value for"
568" each of these arguments selects the full range of results. The *flags* "
569"argument can be one or several of the ``AI_*`` constants, and will influence"
570" how results are computed and returned. For example, :const:`AI_NUMERICHOST`"
571" will disable domain name resolution and will raise an error if *host* is a "
572"domain name."
573msgstr "オプションの *family* 、 *type* 、 *proto* 引数を指定すると、返されるアドレスのリストを絞り込むことができます。これらの引数の値として 0 を渡すと絞る込まない結果を返します。 *flags* 引数には ``AI_*`` 定数のうち 1 つ以上が指定でき、結果の取り方を変えることができます。例えば、 :const:`AI_NUMERICHOST` を指定するとドメイン名解決を行わないようにし、 *host* がドメイン名だった場合には例外を送出します。"
574
575# d1e76ee0fdc14e21b0a6820244e4d0ac
576#: ../../library/socket.rst:414
577msgid "The function returns a list of 5-tuples with the following structure:"
578msgstr "この関数は以下の構造をとる 5 要素のタプルのリストを返します:"
579
580# c2118a5739b04e3d9e89ffdf933f848c
581#: ../../library/socket.rst:416
582msgid "``(family, type, proto, canonname, sockaddr)``"
583msgstr "``(family, type, proto, canonname, sockaddr)``"
584
585# 7febe568470a4942a2c2dd356940b655
586#: ../../library/socket.rst:418
587msgid ""
588"In these tuples, *family*, *type*, *proto* are all integers and are meant to"
589" be passed to the :func:`.socket` function.  *canonname* will be a string "
590"representing the canonical name of the *host* if :const:`AI_CANONNAME` is "
591"part of the *flags* argument; else *canonname* will be empty.  *sockaddr* is"
592" a tuple describing a socket address, whose format depends on the returned "
593"*family* (a ``(address, port)`` 2-tuple for :const:`AF_INET`, a ``(address, "
594"port, flow info, scope id)`` 4-tuple for :const:`AF_INET6`), and is meant to"
595" be passed to the :meth:`socket.connect` method."
596msgstr ""
597
598# be7b0aa0798b4b8da184a7cf9f72232b
599#: ../../library/socket.rst:428
600msgid ""
601"The following example fetches address information for a hypothetical TCP "
602"connection to ``www.python.org`` on port 80 (results may differ on your "
603"system if IPv6 isn't enabled)::"
604msgstr "次の例では ``www.python.org`` の 80 番ポートポートへの TCP 接続を得るためのアドレス情報を取得しようとしています。 (結果は IPv6 をサポートしているかどうかで変わります)::"
605
606# cb89a38f99fc410d9b8ef7ba3842faf1
607# ec16915d80054df3a9785e36eea0046d
608#: ../../library/socket.rst:436 ../../library/socket.rst:436
609msgid "parameters can now be passed as single keyword arguments."
610msgstr ""
611
612# 53615f9f9a514d4e91a5a6c4d85de182
613#: ../../library/socket.rst:441
614msgid ""
615"Return a fully qualified domain name for *name*. If *name* is omitted or "
616"empty, it is interpreted as the local host.  To find the fully qualified "
617"name, the hostname returned by :func:`gethostbyaddr` is checked, followed by"
618" aliases for the host, if available.  The first name which includes a period"
619" is selected.  In case no fully qualified domain name is available, the "
620"hostname as returned by :func:`gethostname` is returned."
621msgstr "*name* の完全修飾ドメイン名を返します。 *name* が空または省略された場合、ローカルホストを指定したとみなします。完全修飾ドメイン名の取得にはまず :func:`gethostbyaddr` でチェックし、次に可能であればエイリアスを調べ、名前にピリオドを含む最初の名前を値として返します。完全修飾ドメイン名を取得できない場合、 :func:`gethostname` で返されるホスト名を返します。"
622
623# 0eeaa94d5dd549d0b8488287730b7a36
624#: ../../library/socket.rst:451
625msgid ""
626"Translate a host name to IPv4 address format.  The IPv4 address is returned "
627"as a string, such as  ``'100.50.200.5'``.  If the host name is an IPv4 "
628"address itself it is returned unchanged.  See :func:`gethostbyname_ex` for a"
629" more complete interface. :func:`gethostbyname` does not support IPv6 name "
630"resolution, and :func:`getaddrinfo` should be used instead for IPv4/v6 dual "
631"stack support."
632msgstr "ホスト名を ``'100.50.200.5'`` のようなIPv4形式のアドレスに変換します。ホスト名としてIPv4アドレスを指定した場合、その値は変換せずにそのまま返ります。 :func:`gethostbyname` APIへのより完全なインターフェースが必要であれば、 :func:`gethostbyname_ex` を参照してください。 :func:`gethostbyname` は、IPv6名前解決をサポートしていません。IPv4/ v6のデュアルスタックをサポートする場合は :func:`getaddrinfo` を使用します。"
633
634# dd655c91490845618bfe2a8a55e8b73d
635#: ../../library/socket.rst:460
636msgid ""
637"Translate a host name to IPv4 address format, extended interface. Return a "
638"triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary"
639" host name responding to the given *ip_address*, *aliaslist* is a (possibly "
640"empty) list of alternative host names for the same address, and *ipaddrlist*"
641" is a list of IPv4 addresses for the same interface on the same host (often "
642"but not always a single address). :func:`gethostbyname_ex` does not support "
643"IPv6 name resolution, and :func:`getaddrinfo` should be used instead for "
644"IPv4/v6 dual stack support."
645msgstr "ホスト名から、IPv4形式の各種アドレス情報を取得します。戻り値は ``(hostname, aliaslist, ipaddrlist)`` のタプルで、 *hostname* は *ip_address* で指定したホストの正式名、 *aliaslist* は同じアドレスの別名のリスト(空の場合もある)、 *ipaddrlist* は同じホスト上の同一インターフェースのIPv4アドレスのリスト(ほとんどの場合は単一のアドレスのみ) を示します。 :func:`gethostbyname` は、IPv6名前解決をサポートしていません。IPv4/v6のデュアルスタックをサポートする場合は :func:`getaddrinfo` を使用します。"
646
647# 73e962c3b8a84a1483e8c26d4e210862
648#: ../../library/socket.rst:472
649msgid ""
650"Return a string containing the hostname of the machine where  the Python "
651"interpreter is currently executing."
652msgstr "Pythonインタープリタを現在実行中のマシンのホスト名を示す文字列を取得します。"
653
654# f9b3d54e89994c15b1eef44bf705b4ba
655#: ../../library/socket.rst:475
656msgid ""
657"If you want to know the current machine's IP address, you may want to use "
658"``gethostbyname(gethostname())``. This operation assumes that there is a "
659"valid address-to-host mapping for the host, and the assumption does not "
660"always hold."
661msgstr "実行中マシンのIPアドレスが必要であれば、 ``gethostbyname(gethostname())`` を使用してください。この処理は実行中ホストのアドレス-ホスト名変換が可能であることを前提としていますが、常に変換可能であるとは限りません。"
662
663# 4ba246d1f849474d86bc633a1da6264e
664#: ../../library/socket.rst:480
665msgid ""
666"Note: :func:`gethostname` doesn't always return the fully qualified domain "
667"name; use ``getfqdn()`` (see above)."
668msgstr "注意: :func:`gethostname` は完全修飾ドメイン名を返すとは限りません。完全修飾ドメイン名が必要であれば、 ``gethostbyaddr(gethostname())`` としてください(下記参照)。"
669
670# cc34823a4f2d4e3284258a2109c11cac
671#: ../../library/socket.rst:486
672msgid ""
673"Return a triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is "
674"the primary host name responding to the given *ip_address*, *aliaslist* is a"
675" (possibly empty) list of alternative host names for the same address, and "
676"*ipaddrlist* is a list of IPv4/v6 addresses for the same interface on the "
677"same host (most likely containing only a single address). To find the fully "
678"qualified domain name, use the function :func:`getfqdn`. "
679":func:`gethostbyaddr` supports both IPv4 and IPv6."
680msgstr "``(hostname, aliaslist, ipaddrlist)`` のタプルを返し、 *hostname* は *ip_address* で指定したホストの正式名、 ``aliaslist`` は同じアドレスの別名のリスト(空の場合もある)、 ``ipaddrlist`` は同じホスト上の同一インターフェースのIPv4アドレスのリスト(ほとんどの場合は単一のアドレスのみ)を示します。完全修飾ドメイン名が必要であれば、 :func:`getfqdn` を使用してください。 :func:`gethostbyaddr` は、IPv4/IPv6の両方をサポートしています。"
681
682# 4be3c21ed1bf4d5faec1e42877dd9877
683#: ../../library/socket.rst:497
684msgid ""
685"Translate a socket address *sockaddr* into a 2-tuple ``(host, port)``. "
686"Depending on the settings of *flags*, the result can contain a fully-"
687"qualified domain name or numeric address representation in *host*.  "
688"Similarly, *port* can contain a string port name or a numeric port number."
689msgstr "ソケットアドレス *sockaddr* から、 ``(host, port)`` のタプルを取得します。 *flags* の設定に従い、 *host* は完全修飾ドメイン名または数値形式アドレスとなります。同様に、 *port* は文字列のポート名または数値のポート番号となります。"
690
691# f2b5ad4679104aafb1abe480034a5ed3
692#: ../../library/socket.rst:505
693msgid ""
694"Translate an Internet protocol name (for example, ``'icmp'``) to a constant "
695"suitable for passing as the (optional) third argument to the :func:`.socket`"
696" function.  This is usually only needed for sockets opened in \"raw\" mode "
697"(:const:`SOCK_RAW`); for the normal socket modes, the correct protocol is "
698"chosen automatically if the protocol is omitted or zero."
699msgstr ""
700
701# 39f75d9eb9264692918f671d6be390ec
702#: ../../library/socket.rst:514
703msgid ""
704"Translate an Internet service name and protocol name to a port number for "
705"that service.  The optional protocol name, if given, should be ``'tcp'`` or "
706"``'udp'``, otherwise any protocol will match."
707msgstr "インターネットサービス名とプロトコルから、そのサービスのポート番号を取得します。省略可能なプロトコル名として、 ``'tcp'`` か ``'udp'`` のどちらかを指定することができます。指定がなければどちらのプロトコルにもマッチします。"
708
709# dfa9f40b690d43d28e0e8c17f46d558d
710#: ../../library/socket.rst:521
711msgid ""
712"Translate an Internet port number and protocol name to a service name for "
713"that service.  The optional protocol name, if given, should be ``'tcp'`` or "
714"``'udp'``, otherwise any protocol will match."
715msgstr "インターネットポート番号とプロトコル名から、サービス名を取得します。省略可能なプロトコル名として、 ``'tcp'`` か ``'udp'`` のどちらかを指定することができます。指定がなければどちらのプロトコルにもマッチします。"
716
717# 6feb402444d24f65abaaf1abffed0706
718#: ../../library/socket.rst:528
719msgid ""
720"Convert 32-bit positive integers from network to host byte order.  On "
721"machines where the host byte order is the same as network byte order, this "
722"is a no-op; otherwise, it performs a 4-byte swap operation."
723msgstr "32ビットの正の整数のバイトオーダを、ネットワークバイトオーダからホストバイトオーダに変換します。ホストバイトオーダとネットワークバイトオーダが一致するマシンでは、この関数は何もしません。それ以外の場合は4バイトのスワップを行います。"
724
725# 51d2994311c940e98aff17b5e3eceb59
726#: ../../library/socket.rst:535
727msgid ""
728"Convert 16-bit positive integers from network to host byte order.  On "
729"machines where the host byte order is the same as network byte order, this "
730"is a no-op; otherwise, it performs a 2-byte swap operation."
731msgstr "16ビットの正の整数のバイトオーダを、ネットワークバイトオーダからホストバイトオーダに変換します。ホストバイトオーダとネットワークバイトオーダが一致するマシンでは、この関数は何もしません。それ以外の場合は2バイトのスワップを行います。"
732
733# 02fc05e64a7a4e179f851a8cd5551949
734#: ../../library/socket.rst:542
735msgid ""
736"Convert 32-bit positive integers from host to network byte order.  On "
737"machines where the host byte order is the same as network byte order, this "
738"is a no-op; otherwise, it performs a 4-byte swap operation."
739msgstr "32ビットの正の整数のバイトオーダを、ホストバイトオーダからネットワークバイトオーダに変換します。ホストバイトオーダとネットワークバイトオーダが一致するマシンでは、この関数は何もしません。それ以外の場合は4バイトのスワップを行います。"
740
741# 2da3fa52c4c844c8989fa36a226813cc
742#: ../../library/socket.rst:549
743msgid ""
744"Convert 16-bit positive integers from host to network byte order.  On "
745"machines where the host byte order is the same as network byte order, this "
746"is a no-op; otherwise, it performs a 2-byte swap operation."
747msgstr "16ビットの正の整数のバイトオーダを、ホストバイトオーダからネットワークバイトオーダに変換します。ホストバイトオーダとネットワークバイトオーダが一致するマシンでは、この関数は何もしません。それ以外の場合は2バイトのスワップを行います。"
748
749# eb512910712e407581ddf05254dc1a6c
750#: ../../library/socket.rst:556
751msgid ""
752"Convert an IPv4 address from dotted-quad string format (for example, "
753"'123.45.67.89') to 32-bit packed binary format, as a bytes object four "
754"characters in length.  This is useful when conversing with a program that "
755"uses the standard C library and needs objects of type :c:type:`struct "
756"in_addr`, which is the C type for the 32-bit packed binary this function "
757"returns."
758msgstr "ドット記法によるIPv4アドレス(``'123.45.67.89'`` など)を32ビットにパックしたバイナリ形式に変換し、長さ4のバイト列オブジェクトとして返します。この関数が返す値は、標準Cライブラリの :c:type:`struct in_addr` 型を使用する関数に渡す事ができます。"
759
760# 77894199ecce4774b800266e819dcff8
761#: ../../library/socket.rst:562
762msgid ""
763":func:`inet_aton` also accepts strings with less than three dots; see the "
764"Unix manual page :manpage:`inet(3)` for details."
765msgstr ":func:`inet_aton` はドットが 3 個以下の文字列も受け取ります; 詳細については Unix のマニュアル :manpage:`inet(3)` を参照してください。"
766
767# 13590d08f6b147a9b20216248d62e41b
768#: ../../library/socket.rst:565
769msgid ""
770"If the IPv4 address string passed to this function is invalid, "
771":exc:`OSError` will be raised. Note that exactly what is valid depends on "
772"the underlying C implementation of :c:func:`inet_aton`."
773msgstr "IPv4アドレス文字列が不正であれば、 :exc:`OSError` が発生します。このチェックは、この関数で使用しているCの実装 :c:func:`inet_aton` で行われます。"
774
775# d7248f6947ed482b8f40956fd03f7bb0
776#: ../../library/socket.rst:569
777msgid ""
778":func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be "
779"used instead for IPv4/v6 dual stack support."
780msgstr ":func:`inet_aton` は、IPv6をサポートしません。IPv4/v6のデュアルスタックをサポートする場合は :func:`inet_pton` を使用します。"
781
782# 88f4e89caa4b4927af52a0c7cec1b204
783#: ../../library/socket.rst:575
784msgid ""
785"Convert a 32-bit packed IPv4 address (a bytes object four characters in "
786"length) to its standard dotted-quad string representation (for example, "
787"'123.45.67.89').  This is useful when conversing with a program that uses "
788"the standard C library and needs objects of type :c:type:`struct in_addr`, "
789"which is the C type for the 32-bit packed binary data this function takes as"
790" an argument."
791msgstr "32ビットにパックしたバイナリ形式のIPv4アドレスを、ドット記法による文字列 (``'123.45.67.89'`` など)に変換します。この関数が返す値は、標準Cライブラリの :c:type:`struct in_addr` 型を使用する関数に渡す事ができます。"
792
793# c7a0482928f04d11a6242e3cd1e59210
794#: ../../library/socket.rst:582
795msgid ""
796"If the byte sequence passed to this function is not exactly 4 bytes in "
797"length, :exc:`OSError` will be raised. :func:`inet_ntoa` does not support "
798"IPv6, and :func:`inet_ntop` should be used instead for IPv4/v6 dual stack "
799"support."
800msgstr "この関数に渡すバイトシーケンスの長さが4バイト以外であれば、 :exc:`socket.error` が発生します。 :func:`inet_ntoa` は、IPv6をサポートしません。IPv4/v6のデュアルスタックをサポートする場合は :func:`inet_pton` を使用します。"
801
802# 6a777f795b1b4bd7954cd86b699287f1
803#: ../../library/socket.rst:590
804msgid ""
805"Convert an IP address from its family-specific string format to a packed, "
806"binary format. :func:`inet_pton` is useful when a library or network "
807"protocol calls for an object of type :c:type:`struct in_addr` (similar to "
808":func:`inet_aton`) or :c:type:`struct in6_addr`."
809msgstr "IPアドレスを、アドレスファミリ固有の文字列からパックしたバイナリ形式に変換します。 :func:`inet_pton` は、 :c:type:`struct in_addr` 型 (:func:`inet_aton` と同様)や :c:type:`struct in6_addr` を使用するライブラリやネットワークプロトコルを呼び出す際に使用することができます。"
810
811# 0c4640629bff48f09f1aa1ca94bf49de
812#: ../../library/socket.rst:595
813msgid ""
814"Supported values for *address_family* are currently :const:`AF_INET` and "
815":const:`AF_INET6`. If the IP address string *ip_string* is invalid, "
816":exc:`OSError` will be raised. Note that exactly what is valid depends on "
817"both the value of *address_family* and the underlying implementation of "
818":c:func:`inet_pton`."
819msgstr "現在サポートされている *address_family* は、 :const:`AF_INET` と :const:`AF_INET6` です。 *ip_string* に不正なIPアドレス文字列を指定すると、 :exc:`OSError` が発生します。有効な *ip_string* は、 *address_family* と :c:func:`inet_pton` の実装によって異なります。"
820
821# f0882252f5a54686a324dba6a32541f9
822# 935f331356564bd5a2bbe00d93d55640
823#: ../../library/socket.rst:601 ../../library/socket.rst:617
824msgid "Availability: Unix (maybe not all platforms)."
825msgstr "利用可能: Unix (サポートしていないプラットフォームもあります)。"
826
827# 2f3ee5780b494362bbfcb75f7003955d
828#: ../../library/socket.rst:606
829msgid ""
830"Convert a packed IP address (a bytes object of some number of characters) to"
831" its standard, family-specific string representation (for example, "
832"``'7.10.0.5'`` or ``'5aef:2b::8'``). :func:`inet_ntop` is useful when a "
833"library or network protocol returns an object of type :c:type:`struct "
834"in_addr` (similar to :func:`inet_ntoa`) or :c:type:`struct in6_addr`."
835msgstr "パックしたIPアドレス(数文字のバイト列オブジェクト)を、 ``'7.10.0.5'`` や ``'5aef:2b::8'`` などの標準的な、アドレスファミリ固有の文字列形式に変換します。 :func:`inet_ntop` は(:func:`inet_ntoa` と同様に) :c:type:`struct in_addr` 型や :c:type:`struct in6_addr` 型のオブジェクトを返すライブラリやネットワークプロトコル等で使用することができます。"
836
837# 8241745c11774039a84ac2f1ccff07c3
838#: ../../library/socket.rst:612
839msgid ""
840"Supported values for *address_family* are currently :const:`AF_INET` and "
841":const:`AF_INET6`. If the string *packed_ip* is not the correct length for "
842"the specified address family, :exc:`ValueError` will be raised.  A "
843":exc:`OSError` is raised for errors from the call to :func:`inet_ntop`."
844msgstr "現在サポートされている *address_family* は、 :const:`AF_INET` と :const:`AF_INET6` です。 *packed_ip* の長さが指定したアドレスファミリで適切な長さでなければ、 :exc:`ValueError` が発生します。 :func:`inet_ntop` でエラーとなると、 :exc:`OSError` が発生します。"
845
846# a6fe65cc7b674e579c4ed5dfe76e6f32
847#: ../../library/socket.rst:628
848msgid ""
849"Return the total length, without trailing padding, of an ancillary data item"
850" with associated data of the given *length*.  This value can often be used "
851"as the buffer size for :meth:`~socket.recvmsg` to receive a single item of "
852"ancillary data, but :rfc:`3542` requires portable applications to use "
853":func:`CMSG_SPACE` and thus include space for padding, even when the item "
854"will be the last in the buffer.  Raises :exc:`OverflowError` if *length* is "
855"outside the permissible range of values."
856msgstr ""
857
858# dcda93aaf72f45678c4eda611aea023d
859# 92c323796ea94a588a30005d363bb08b
860# eb26b0bbf1d74685a8e1257cee7d0066
861# 0747488eeddd4554a4bf6417c57bb72b
862# 53eea693d11149469d5673a5fb8ce6c0
863#: ../../library/socket.rst:637 ../../library/socket.rst:658
864#: ../../library/socket.rst:959 ../../library/socket.rst:996
865#: ../../library/socket.rst:1080
866msgid "Availability: most Unix platforms, possibly others."
867msgstr ""
868
869# 0f01b2f732fe469a8b1ab634e996af97
870#: ../../library/socket.rst:644
871msgid ""
872"Return the buffer size needed for :meth:`~socket.recvmsg` to receive an "
873"ancillary data item with associated data of the given *length*, along with "
874"any trailing padding.  The buffer space needed to receive multiple items is "
875"the sum of the :func:`CMSG_SPACE` values for their associated data lengths."
876"  Raises :exc:`OverflowError` if *length* is outside the permissible range "
877"of values."
878msgstr ""
879
880# 79b7af29103f4afdb3e62d6818ad1e2d
881#: ../../library/socket.rst:652
882msgid ""
883"Note that some systems might support ancillary data without providing this "
884"function.  Also note that setting the buffer size using the results of this "
885"function may not precisely limit the amount of ancillary data that can be "
886"received, since additional data may be able to fit into the padding area."
887msgstr ""
888
889# 7336abb70ff24b9091bf7758b23634d9
890#: ../../library/socket.rst:665
891msgid ""
892"Return the default timeout in seconds (float) for new socket objects. A "
893"value of ``None`` indicates that new socket objects have no timeout. When "
894"the socket module is first imported, the default is ``None``."
895msgstr "新規に生成されたソケットオブジェクトの、デフォルトのタイムアウト値を秒数(浮動小数点形式)で返します。タイプアウトを使用しない場合には ``None`` を返します。最初にsocketモジュールがインポートされた時の初期値は ``None`` です。"
896
897# 94e8cf3e042246f4a04f0d1456cfc3cd
898#: ../../library/socket.rst:672
899msgid ""
900"Set the default timeout in seconds (float) for new socket objects.  When the"
901" socket module is first imported, the default is ``None``.  See "
902":meth:`~socket.settimeout` for possible values and their respective "
903"meanings."
904msgstr ""
905
906# 4244f00c68d746358130362fb9c7288b
907#: ../../library/socket.rst:680
908msgid ""
909"Set the machine's hostname to *name*.  This will raise a :exc:`OSError` if "
910"you don't have enough rights."
911msgstr ""
912
913# 7ff272ba99f34ea7abe9a3ca38af8ef0
914# 9b5e7820356d43e39df8686108cceab4
915# 81051ee7ca9147c8a5598a69608a8ee0
916# ec27d109f63d43bfaea94f5ff4095dd2
917#: ../../library/socket.rst:683 ../../library/socket.rst:694
918#: ../../library/socket.rst:705 ../../library/socket.rst:716
919msgid "Availability: Unix."
920msgstr "利用できる環境: Unix。"
921
922# 499186d8a19e424196679c97e8332bd0
923#: ../../library/socket.rst:690
924msgid ""
925"Return a list of network interface information (index int, name string) "
926"tuples. :exc:`OSError` if the system call fails."
927msgstr ""
928
929# c4ebcac498a44d64a88b5ee61b65dae1
930#: ../../library/socket.rst:701
931msgid ""
932"Return a network interface index number corresponding to an interface name. "
933":exc:`OSError` if no interface with the given name exists."
934msgstr ""
935
936# 8a227c2f2674493aa34f32046016bee1
937#: ../../library/socket.rst:712
938msgid ""
939"Return a network interface name corresponding to a interface index number. "
940":exc:`OSError` if no interface with the given index exists."
941msgstr ""
942
943# 11b8514d5b9945a58292ba4d238f92da
944#: ../../library/socket.rst:724
945msgid "Socket Objects"
946msgstr "socket オブジェクト"
947
948# 313bd9e858854a2f9f183b8cf6f2b2b1
949#: ../../library/socket.rst:726
950msgid ""
951"Socket objects have the following methods.  Except for "
952":meth:`~socket.makefile`, these correspond to Unix system calls applicable "
953"to sockets."
954msgstr ""
955
956# 4030753db7f24dcfaa5c3f54d95b64e7
957#: ../../library/socket.rst:733
958msgid ""
959"Accept a connection. The socket must be bound to an address and listening "
960"for connections. The return value is a pair ``(conn, address)`` where *conn*"
961" is a *new* socket object usable to send and receive data on the connection,"
962" and *address* is the address bound to the socket on the other end of the "
963"connection."
964msgstr "接続を受け付けます。ソケットはアドレスにbind済みで、listen中である必要があります。戻り値は ``(conn, address)`` のペアで、 *conn* は接続を通じてデータの送受信を行うための *新しい* ソケットオブジェクト、 *address* は接続先でソケットにbindしているアドレスを示します。"
965
966# d64015cae7e2423d926ad0f54eb4e8e6
967#: ../../library/socket.rst:741
968msgid ""
969"Bind the socket to *address*.  The socket must not already be bound. (The "
970"format of *address* depends on the address family --- see above.)"
971msgstr "ソケットを *address* にbindします。bind済みのソケットを再バインドする事はできません。 *address* のフォーマットはアドレスファミリによって異なります(前述)。"
972
973# 0af312f00fa14d46856f5f106c7fc889
974#: ../../library/socket.rst:747
975msgi…

Large files files are truncated, but you can click here to view the full file