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