@@ -1101,49 +1101,69 @@ msgid ""
1101
1101
"AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* "
1102
1102
"will be determined from host name (defaults to :data:`~socket.AF_UNSPEC`)."
1103
1103
msgstr ""
1104
+ "*family* pode ser definido para :data:`socket.AF_INET` ou :data:`~socket."
1105
+ "AF_INET6` para forçar o soquete a usar IPv4 ou IPv6. Se não for definido, "
1106
+ "*family* será determinado a partir do nome do servidor (por padrão será :"
1107
+ "data:`~socket.AF_UNSPEC`)."
1104
1108
1105
1109
#: ../../library/asyncio-eventloop.rst:618
1106
1110
msgid "*flags* is a bitmask for :meth:`getaddrinfo`."
1107
- msgstr ""
1111
+ msgstr "*flags* é uma máscara de bits para :meth:`getaddrinfo`. "
1108
1112
1109
1113
#: ../../library/asyncio-eventloop.rst:620
1110
1114
msgid ""
1111
1115
"*sock* can optionally be specified in order to use a preexisting socket "
1112
1116
"object. If specified, *host* and *port* must not be specified."
1113
1117
msgstr ""
1118
+ "*sock* pode opcionalmente ser especificado para usar um objeto soquete pré-"
1119
+ "existente. Se especificado, *host* e *port* não devem ser especificados."
1114
1120
1115
1121
#: ../../library/asyncio-eventloop.rst:623
1116
1122
msgid ""
1117
1123
"*backlog* is the maximum number of queued connections passed to :meth:"
1118
1124
"`~socket.socket.listen` (defaults to 100)."
1119
1125
msgstr ""
1126
+ "*backlog* é o número máximo de conexões enfileiradas pasadas para :meth:"
1127
+ "`~socket.socket.listen` (padrão é 100)."
1120
1128
1121
1129
#: ../../library/asyncio-eventloop.rst:626
1122
1130
msgid ""
1123
1131
"*ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over "
1124
1132
"the accepted connections."
1125
1133
msgstr ""
1134
+ "*ssl* pode ser definido para uma instância de :class:`~ssl.SSLContext` para "
1135
+ "habilitar TLS sobre as conexões aceitas."
1126
1136
1127
1137
#: ../../library/asyncio-eventloop.rst:629
1128
1138
msgid ""
1129
1139
"*reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` "
1130
1140
"state, without waiting for its natural timeout to expire. If not specified "
1131
1141
"will automatically be set to ``True`` on Unix."
1132
1142
msgstr ""
1143
+ "*reuse_address* diz ao kernel para reusar um soquete local em estado "
1144
+ "``TIME_WAIT``, serm aguardar pela expiração natural do seu tempo limite. Se "
1145
+ "não especificado, será automaticamente definida como ``True`` no Unix."
1133
1146
1134
1147
#: ../../library/asyncio-eventloop.rst:634
1135
1148
msgid ""
1136
1149
"*reuse_port* tells the kernel to allow this endpoint to be bound to the same "
1137
1150
"port as other existing endpoints are bound to, so long as they all set this "
1138
1151
"flag when being created. This option is not supported on Windows."
1139
1152
msgstr ""
1153
+ "*reuse_port* diz ao kernel para permitir que este endpoint seja vinculado a "
1154
+ "mesma porta que outros endpoints existentes estão vinculados, contanto que "
1155
+ "todos eles definam este sinalizador quando forem criados. Esta opção não é "
1156
+ "suportada no Windows."
1140
1157
1141
1158
#: ../../library/asyncio-eventloop.rst:639
1142
1159
msgid ""
1143
1160
"*ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait "
1144
1161
"for the TLS handshake to complete before aborting the connection. ``60.0`` "
1145
1162
"seconds if ``None`` (default)."
1146
1163
msgstr ""
1164
+ "*ssl_handshake_timeout* é (para um servidor TLS) o tempo em segundos para "
1165
+ "aguardar pelo aperto de mão TLS ser concluído, antes de abortar a conexão. "
1166
+ "``60.0`` segundos se ``None`` (valor padrão)."
1147
1167
1148
1168
#: ../../library/asyncio-eventloop.rst:643
1149
1169
msgid ""
@@ -1152,103 +1172,128 @@ msgid ""
1152
1172
"should await on :meth:`Server.start_serving` or :meth:`Server.serve_forever` "
1153
1173
"to make the server to start accepting connections."
1154
1174
msgstr ""
1175
+ "Definir *start_serving* para ``True`` (o valor padrão) faz o servidor criado "
1176
+ "começar a aceitar conexões imediatamente. Quando definido para ``False``, o "
1177
+ "usuário deve aguardar com :meth:`Server.start_serving` ou :meth:`Server."
1178
+ "serve_forever` para fazer o servidor começar a aceitar conexões."
1155
1179
1156
1180
#: ../../library/asyncio-eventloop.rst:651
1157
1181
msgid "Added *ssl_handshake_timeout* and *start_serving* parameters."
1158
- msgstr ""
1182
+ msgstr "Adicionado os parâmetros *ssl_handshake_timeout* e *start_serving*. "
1159
1183
1160
1184
#: ../../library/asyncio-eventloop.rst:664
1161
1185
msgid "The *host* parameter can be a sequence of strings."
1162
- msgstr ""
1186
+ msgstr "O parâmetro *host* pode ser uma sequência de strings. "
1163
1187
1164
1188
#: ../../library/asyncio-eventloop.rst:668
1165
1189
msgid ""
1166
1190
"The :func:`start_server` function is a higher-level alternative API that "
1167
1191
"returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can "
1168
1192
"be used in an async/await code."
1169
1193
msgstr ""
1194
+ "A função :func:`start_server` é uma API alternativa de alto nível que "
1195
+ "retorna um par de :class:`StreamReader` e :class:`StreamWriter` que pode ser "
1196
+ "usado em um código async/await."
1170
1197
1171
1198
#: ../../library/asyncio-eventloop.rst:677
1172
1199
msgid ""
1173
1200
"Similar to :meth:`loop.create_server` but works with the :py:data:`~socket."
1174
1201
"AF_UNIX` socket family."
1175
1202
msgstr ""
1203
+ "Similar a :meth:`loop.create_server`, mas trabalha com a familia de soquete :"
1204
+ "py:data:`~socket.AF_UNIX`."
1176
1205
1177
1206
#: ../../library/asyncio-eventloop.rst:680
1178
1207
msgid ""
1179
1208
"*path* is the name of a Unix domain socket, and is required, unless a *sock* "
1180
1209
"argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, "
1181
1210
"and :class:`~pathlib.Path` paths are supported."
1182
1211
msgstr ""
1212
+ "*path* é o nome de um soquete de domínio Unix, e é obrigatório, a não ser "
1213
+ "que um argumento *sock* seja fornecido. Soquetes Unix abstratos, :class:"
1214
+ "`str`, :class:`bytes`, e caminhos :class:`~pathlib.Path` são suportados."
1183
1215
1184
1216
#: ../../library/asyncio-eventloop.rst:685
1185
1217
msgid ""
1186
1218
"See the documentation of the :meth:`loop.create_server` method for "
1187
1219
"information about arguments to this method."
1188
1220
msgstr ""
1221
+ "Veja a documentação do método :meth:`loop.create_server` para informações "
1222
+ "sobre argumentos para este método."
1189
1223
1190
1224
#: ../../library/asyncio-eventloop.rst:692
1191
1225
msgid "The *ssl_handshake_timeout* and *start_serving* parameters."
1192
1226
msgstr "Os parâmetros *ssl_handshake_timeout* e *start_serving*."
1193
1227
1194
1228
#: ../../library/asyncio-eventloop.rst:696
1195
1229
msgid "The *path* parameter can now be a :class:`~pathlib.Path` object."
1196
- msgstr ""
1230
+ msgstr "O parâmetro *path* agora pode ser um objeto :class:`~pathlib.Path`. "
1197
1231
1198
1232
#: ../../library/asyncio-eventloop.rst:701
1199
1233
msgid "Wrap an already accepted connection into a transport/protocol pair."
1200
- msgstr ""
1234
+ msgstr "Envolve uma conexão já aceita em um par transporte/protocolo. "
1201
1235
1202
1236
#: ../../library/asyncio-eventloop.rst:703
1203
1237
msgid ""
1204
1238
"This method can be used by servers that accept connections outside of "
1205
1239
"asyncio but that use asyncio to handle them."
1206
1240
msgstr ""
1241
+ "Este método pode ser usado por servidores que aceitam conexões fora do "
1242
+ "asyncio, mas que usam asyncio para manipulá-las."
1207
1243
1208
1244
#: ../../library/asyncio-eventloop.rst:706
1209
1245
#: ../../library/asyncio-eventloop.rst:773
1210
1246
msgid "Parameters:"
1211
- msgstr ""
1247
+ msgstr "Parâmetros: "
1212
1248
1213
1249
#: ../../library/asyncio-eventloop.rst:711
1214
1250
msgid ""
1215
1251
"*sock* is a preexisting socket object returned from :meth:`socket.accept "
1216
1252
"<socket.socket.accept>`."
1217
1253
msgstr ""
1254
+ "*sock* é um objeto soquete pré-existente retornado a partir de :meth:`socket."
1255
+ "accept <socket.socket.accept>`."
1218
1256
1219
1257
#: ../../library/asyncio-eventloop.rst:714
1220
1258
msgid ""
1221
1259
"*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the "
1222
1260
"accepted connections."
1223
1261
msgstr ""
1262
+ "*ssl* pode ser definido para um :class:`~ssl.SSLContext` para habilitar SSL "
1263
+ "sobre as conexões aceitas."
1224
1264
1225
1265
#: ../../library/asyncio-eventloop.rst:717
1226
1266
msgid ""
1227
1267
"*ssl_handshake_timeout* is (for an SSL connection) the time in seconds to "
1228
1268
"wait for the SSL handshake to complete before aborting the connection. "
1229
1269
"``60.0`` seconds if ``None`` (default)."
1230
1270
msgstr ""
1271
+ "*ssl_handshake_timeout* é (para uma conexão SSL) o tempo em segundos para "
1272
+ "aguardar pelo aperto de mão SSL ser concluído, antes de abortar a conexão. "
1273
+ "``60.0`` segundos se ``None`` (valor padrão)."
1231
1274
1232
1275
#: ../../library/asyncio-eventloop.rst:721
1233
1276
msgid "Returns a ``(transport, protocol)`` pair."
1234
- msgstr ""
1277
+ msgstr "Retorna um par ``(transport, protocol)``. "
1235
1278
1236
1279
#: ../../library/asyncio-eventloop.rst:731
1237
1280
msgid "Transferring files"
1238
- msgstr ""
1281
+ msgstr "Transferindo arquivos "
1239
1282
1240
1283
#: ../../library/asyncio-eventloop.rst:736
1241
1284
msgid ""
1242
1285
"Send a *file* over a *transport*. Return the total number of bytes sent."
1243
1286
msgstr ""
1287
+ "Envia um *file* sobre um *transport*. Retorna o número total de bytes "
1288
+ "enviados."
1244
1289
1245
1290
#: ../../library/asyncio-eventloop.rst:739
1246
1291
msgid "The method uses high-performance :meth:`os.sendfile` if available."
1247
- msgstr ""
1292
+ msgstr "O método usa :meth:`os.sendfile` de alto desempenho, se disponível. "
1248
1293
1249
1294
#: ../../library/asyncio-eventloop.rst:741
1250
1295
msgid "*file* must be a regular file object opened in binary mode."
1251
- msgstr ""
1296
+ msgstr "*file* deve ser um objeto arquivo regular aberto em modo binário. "
1252
1297
1253
1298
#: ../../library/asyncio-eventloop.rst:743
1254
1299
#: ../../library/asyncio-eventloop.rst:933
@@ -1259,6 +1304,12 @@ msgid ""
1259
1304
"raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to "
1260
1305
"obtain the actual number of bytes sent."
1261
1306
msgstr ""
1307
+ "*offset* indica a partir de onde deve iniciar a leitura do arquivo. Se "
1308
+ "especificado, *count* é o número total de bytes para transmitir, ao "
1309
+ "contrário de transmitir o arquivo até que EOF seja atingido. A posição do "
1310
+ "arquivo é sempre atualizada, mesmo quando este método levanta um erro, e :"
1311
+ "meth:`file.tell() <io.IOBase.tell>` pode ser usado para obter o número atual "
1312
+ "de bytes enviados."
1262
1313
1263
1314
#: ../../library/asyncio-eventloop.rst:750
1264
1315
msgid ""
0 commit comments