@@ -1006,49 +1006,69 @@ msgid ""
1006
1006
"AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* "
1007
1007
"will be determined from host name (defaults to :data:`~socket.AF_UNSPEC`)."
1008
1008
msgstr ""
1009
+ "*family* pode ser definido para :data:`socket.AF_INET` ou :data:`~socket."
1010
+ "AF_INET6` para forçar o soquete a usar IPv4 ou IPv6. Se não for definido, "
1011
+ "*family* será determinado a partir do nome do servidor (por padrão será :"
1012
+ "data:`~socket.AF_UNSPEC`)."
1009
1013
1010
1014
#: ../../library/asyncio-eventloop.rst:573
1011
1015
msgid "*flags* is a bitmask for :meth:`getaddrinfo`."
1012
- msgstr ""
1016
+ msgstr "*flags* é uma máscara de bits para :meth:`getaddrinfo`. "
1013
1017
1014
1018
#: ../../library/asyncio-eventloop.rst:575
1015
1019
msgid ""
1016
1020
"*sock* can optionally be specified in order to use a preexisting socket "
1017
1021
"object. If specified, *host* and *port* must not be specified."
1018
1022
msgstr ""
1023
+ "*sock* pode opcionalmente ser especificado para usar um objeto soquete pré-"
1024
+ "existente. Se especificado, *host* e *port* não devem ser especificados."
1019
1025
1020
1026
#: ../../library/asyncio-eventloop.rst:578
1021
1027
msgid ""
1022
1028
"*backlog* is the maximum number of queued connections passed to :meth:"
1023
1029
"`~socket.socket.listen` (defaults to 100)."
1024
1030
msgstr ""
1031
+ "*backlog* é o número máximo de conexões enfileiradas pasadas para :meth:"
1032
+ "`~socket.socket.listen` (padrão é 100)."
1025
1033
1026
1034
#: ../../library/asyncio-eventloop.rst:581
1027
1035
msgid ""
1028
1036
"*ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over "
1029
1037
"the accepted connections."
1030
1038
msgstr ""
1039
+ "*ssl* pode ser definido para uma instância de :class:`~ssl.SSLContext` para "
1040
+ "habilitar TLS sobre as conexões aceitas."
1031
1041
1032
1042
#: ../../library/asyncio-eventloop.rst:584
1033
1043
msgid ""
1034
1044
"*reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` "
1035
1045
"state, without waiting for its natural timeout to expire. If not specified "
1036
1046
"will automatically be set to ``True`` on Unix."
1037
1047
msgstr ""
1048
+ "*reuse_address* diz ao kernel para reusar um soquete local em estado "
1049
+ "``TIME_WAIT``, serm aguardar pela expiração natural do seu tempo limite. Se "
1050
+ "não especificado, será automaticamente definida como ``True`` no Unix."
1038
1051
1039
1052
#: ../../library/asyncio-eventloop.rst:589
1040
1053
msgid ""
1041
1054
"*reuse_port* tells the kernel to allow this endpoint to be bound to the same "
1042
1055
"port as other existing endpoints are bound to, so long as they all set this "
1043
1056
"flag when being created. This option is not supported on Windows."
1044
1057
msgstr ""
1058
+ "*reuse_port* diz ao kernel para permitir que este endpoint seja vinculado a "
1059
+ "mesma porta que outros endpoints existentes estão vinculados, contanto que "
1060
+ "todos eles definam este sinalizador quando forem criados. Esta opção não é "
1061
+ "suportada no Windows."
1045
1062
1046
1063
#: ../../library/asyncio-eventloop.rst:594
1047
1064
msgid ""
1048
1065
"*ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait "
1049
1066
"for the TLS handshake to complete before aborting the connection. ``60.0`` "
1050
1067
"seconds if ``None`` (default)."
1051
1068
msgstr ""
1069
+ "*ssl_handshake_timeout* é (para um servidor TLS) o tempo em segundos para "
1070
+ "aguardar pelo aperto de mão TLS ser concluído, antes de abortar a conexão. "
1071
+ "``60.0`` segundos se ``None`` (valor padrão)."
1052
1072
1053
1073
#: ../../library/asyncio-eventloop.rst:598
1054
1074
msgid ""
@@ -1057,103 +1077,128 @@ msgid ""
1057
1077
"should await on :meth:`Server.start_serving` or :meth:`Server.serve_forever` "
1058
1078
"to make the server to start accepting connections."
1059
1079
msgstr ""
1080
+ "Definir *start_serving* para ``True`` (o valor padrão) faz o servidor criado "
1081
+ "começar a aceitar conexões imediatamente. Quando definido para ``False``, o "
1082
+ "usuário deve aguardar com :meth:`Server.start_serving` ou :meth:`Server."
1083
+ "serve_forever` para fazer o servidor começar a aceitar conexões."
1060
1084
1061
1085
#: ../../library/asyncio-eventloop.rst:606
1062
1086
msgid "Added *ssl_handshake_timeout* and *start_serving* parameters."
1063
- msgstr ""
1087
+ msgstr "Adicionado os parâmetros *ssl_handshake_timeout* e *start_serving*. "
1064
1088
1065
1089
#: ../../library/asyncio-eventloop.rst:619
1066
1090
msgid "The *host* parameter can be a sequence of strings."
1067
- msgstr ""
1091
+ msgstr "O parâmetro *host* pode ser uma sequência de strings. "
1068
1092
1069
1093
#: ../../library/asyncio-eventloop.rst:623
1070
1094
msgid ""
1071
1095
"The :func:`start_server` function is a higher-level alternative API that "
1072
1096
"returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can "
1073
1097
"be used in an async/await code."
1074
1098
msgstr ""
1099
+ "A função :func:`start_server` é uma API alternativa de alto nível que "
1100
+ "retorna um par de :class:`StreamReader` e :class:`StreamWriter` que pode ser "
1101
+ "usado em um código async/await."
1075
1102
1076
1103
#: ../../library/asyncio-eventloop.rst:632
1077
1104
msgid ""
1078
1105
"Similar to :meth:`loop.create_server` but works with the :py:data:`~socket."
1079
1106
"AF_UNIX` socket family."
1080
1107
msgstr ""
1108
+ "Similar a :meth:`loop.create_server`, mas trabalha com a familia de soquete :"
1109
+ "py:data:`~socket.AF_UNIX`."
1081
1110
1082
1111
#: ../../library/asyncio-eventloop.rst:635
1083
1112
msgid ""
1084
1113
"*path* is the name of a Unix domain socket, and is required, unless a *sock* "
1085
1114
"argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, "
1086
1115
"and :class:`~pathlib.Path` paths are supported."
1087
1116
msgstr ""
1117
+ "*path* é o nome de um soquete de domínio Unix, e é obrigatório, a não ser "
1118
+ "que um argumento *sock* seja fornecido. Soquetes Unix abstratos, :class:"
1119
+ "`str`, :class:`bytes`, e caminhos :class:`~pathlib.Path` são suportados."
1088
1120
1089
1121
#: ../../library/asyncio-eventloop.rst:640
1090
1122
msgid ""
1091
1123
"See the documentation of the :meth:`loop.create_server` method for "
1092
1124
"information about arguments to this method."
1093
1125
msgstr ""
1126
+ "Veja a documentação do método :meth:`loop.create_server` para informações "
1127
+ "sobre argumentos para este método."
1094
1128
1095
1129
#: ../../library/asyncio-eventloop.rst:647
1096
1130
msgid "The *ssl_handshake_timeout* and *start_serving* parameters."
1097
1131
msgstr "Os parâmetros *ssl_handshake_timeout* e *start_serving*."
1098
1132
1099
1133
#: ../../library/asyncio-eventloop.rst:651
1100
1134
msgid "The *path* parameter can now be a :class:`~pathlib.Path` object."
1101
- msgstr ""
1135
+ msgstr "O parâmetro *path* agora pode ser um objeto :class:`~pathlib.Path`. "
1102
1136
1103
1137
#: ../../library/asyncio-eventloop.rst:656
1104
1138
msgid "Wrap an already accepted connection into a transport/protocol pair."
1105
- msgstr ""
1139
+ msgstr "Envolve uma conexão já aceita em um par transporte/protocolo. "
1106
1140
1107
1141
#: ../../library/asyncio-eventloop.rst:658
1108
1142
msgid ""
1109
1143
"This method can be used by servers that accept connections outside of "
1110
1144
"asyncio but that use asyncio to handle them."
1111
1145
msgstr ""
1146
+ "Este método pode ser usado por servidores que aceitam conexões fora do "
1147
+ "asyncio, mas que usam asyncio para manipulá-las."
1112
1148
1113
1149
#: ../../library/asyncio-eventloop.rst:661
1114
1150
#: ../../library/asyncio-eventloop.rst:728
1115
1151
msgid "Parameters:"
1116
- msgstr ""
1152
+ msgstr "Parâmetros: "
1117
1153
1118
1154
#: ../../library/asyncio-eventloop.rst:666
1119
1155
msgid ""
1120
1156
"*sock* is a preexisting socket object returned from :meth:`socket.accept "
1121
1157
"<socket.socket.accept>`."
1122
1158
msgstr ""
1159
+ "*sock* é um objeto soquete pré-existente retornado a partir de :meth:`socket."
1160
+ "accept <socket.socket.accept>`."
1123
1161
1124
1162
#: ../../library/asyncio-eventloop.rst:669
1125
1163
msgid ""
1126
1164
"*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the "
1127
1165
"accepted connections."
1128
1166
msgstr ""
1167
+ "*ssl* pode ser definido para um :class:`~ssl.SSLContext` para habilitar SSL "
1168
+ "sobre as conexões aceitas."
1129
1169
1130
1170
#: ../../library/asyncio-eventloop.rst:672
1131
1171
msgid ""
1132
1172
"*ssl_handshake_timeout* is (for an SSL connection) the time in seconds to "
1133
1173
"wait for the SSL handshake to complete before aborting the connection. "
1134
1174
"``60.0`` seconds if ``None`` (default)."
1135
1175
msgstr ""
1176
+ "*ssl_handshake_timeout* é (para uma conexão SSL) o tempo em segundos para "
1177
+ "aguardar pelo aperto de mão SSL ser concluído, antes de abortar a conexão. "
1178
+ "``60.0`` segundos se ``None`` (valor padrão)."
1136
1179
1137
1180
#: ../../library/asyncio-eventloop.rst:676
1138
1181
msgid "Returns a ``(transport, protocol)`` pair."
1139
- msgstr ""
1182
+ msgstr "Retorna um par ``(transport, protocol)``. "
1140
1183
1141
1184
#: ../../library/asyncio-eventloop.rst:686
1142
1185
msgid "Transferring files"
1143
- msgstr ""
1186
+ msgstr "Transferindo arquivos "
1144
1187
1145
1188
#: ../../library/asyncio-eventloop.rst:691
1146
1189
msgid ""
1147
1190
"Send a *file* over a *transport*. Return the total number of bytes sent."
1148
1191
msgstr ""
1192
+ "Envia um *file* sobre um *transport*. Retorna o número total de bytes "
1193
+ "enviados."
1149
1194
1150
1195
#: ../../library/asyncio-eventloop.rst:694
1151
1196
msgid "The method uses high-performance :meth:`os.sendfile` if available."
1152
- msgstr ""
1197
+ msgstr "O método usa :meth:`os.sendfile` de alto desempenho, se disponível. "
1153
1198
1154
1199
#: ../../library/asyncio-eventloop.rst:696
1155
1200
msgid "*file* must be a regular file object opened in binary mode."
1156
- msgstr ""
1201
+ msgstr "*file* deve ser um objeto arquivo regular aberto em modo binário. "
1157
1202
1158
1203
#: ../../library/asyncio-eventloop.rst:698
1159
1204
#: ../../library/asyncio-eventloop.rst:888
@@ -1164,6 +1209,12 @@ msgid ""
1164
1209
"raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to "
1165
1210
"obtain the actual number of bytes sent."
1166
1211
msgstr ""
1212
+ "*offset* indica a partir de onde deve iniciar a leitura do arquivo. Se "
1213
+ "especificado, *count* é o número total de bytes para transmitir, ao "
1214
+ "contrário de transmitir o arquivo até que EOF seja atingido. A posição do "
1215
+ "arquivo é sempre atualizada, mesmo quando este método levanta um erro, e :"
1216
+ "meth:`file.tell() <io.IOBase.tell>` pode ser usado para obter o número atual "
1217
+ "de bytes enviados."
1167
1218
1168
1219
#: ../../library/asyncio-eventloop.rst:705
1169
1220
msgid ""
0 commit comments