File tree Expand file tree Collapse file tree 13 files changed +154
-50
lines changed Expand file tree Collapse file tree 13 files changed +154
-50
lines changed Original file line number Diff line number Diff line change @@ -138,16 +138,16 @@ Constants
138
138
Note that you don't need to specify these in a call to `usocket.socket() `,
139
139
because `SOCK_STREAM ` socket type automatically selects `IPPROTO_TCP `, and
140
140
`SOCK_DGRAM ` - `IPPROTO_UDP `. Thus, the only real use of these constants
141
- is as an argument to `setsockopt() `.
141
+ is as an argument to `usocket.socket. setsockopt() `.
142
142
143
143
.. data :: usocket.SOL_*
144
144
145
- Socket option levels (an argument to `setsockopt() `). The exact
145
+ Socket option levels (an argument to `usocket.socket. setsockopt() `). The exact
146
146
inventory depends on a ``MicroPython port ``.
147
147
148
148
.. data :: usocket.SO_*
149
149
150
- Socket options (an argument to `setsockopt() `). The exact
150
+ Socket options (an argument to `usocket.socket. setsockopt() `). The exact
151
151
inventory depends on a ``MicroPython port ``.
152
152
153
153
Constants specific to WiPy:
Original file line number Diff line number Diff line change 8
8
msgstr ""
9
9
"Project-Id-Version : PACKAGE VERSION\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-10-11 17:02 +1100\n "
11
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
14
14
"
Language-Team :
LANGUAGE <[email protected] >\n "
@@ -2292,7 +2292,7 @@ msgstr ""
2292
2292
msgid "RTC calibration is not supported on this board"
2293
2293
msgstr ""
2294
2294
2295
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2295
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2296
2296
msgid "no available NIC"
2297
2297
msgstr ""
2298
2298
Original file line number Diff line number Diff line change 7
7
msgstr ""
8
8
"Project-Id-Version : \n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2018-10-11 14:16 +1100\n "
10
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
11
11
"PO-Revision-Date : 2018-07-27 11:55-0700\n "
12
12
"Last-Translator : Sebastian Plamauer\n "
13
13
"Language-Team : \n "
@@ -2311,7 +2311,7 @@ msgstr ""
2311
2311
msgid "RTC calibration is not supported on this board"
2312
2312
msgstr ""
2313
2313
2314
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2314
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2315
2315
msgid "no available NIC"
2316
2316
msgstr ""
2317
2317
Original file line number Diff line number Diff line change 7
7
msgstr ""
8
8
"Project-Id-Version : \n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2018-10-11 14:16 +1100\n "
10
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
11
11
"PO-Revision-Date : 2018-07-27 11:55-0700\n "
12
12
"Last-Translator : \n "
13
13
"Language-Team : \n "
@@ -2292,7 +2292,7 @@ msgstr ""
2292
2292
msgid "RTC calibration is not supported on this board"
2293
2293
msgstr ""
2294
2294
2295
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2295
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2296
2296
msgid "no available NIC"
2297
2297
msgstr ""
2298
2298
Original file line number Diff line number Diff line change 7
7
msgstr ""
8
8
"Project-Id-Version : \n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2018-10-11 14:16 +1100\n "
10
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
11
11
"PO-Revision-Date : 2018-08-24 22:56-0500\n "
12
12
"Last-Translator : \n "
13
13
"Language-Team : \n "
@@ -2340,7 +2340,7 @@ msgstr ""
2340
2340
msgid "RTC calibration is not supported on this board"
2341
2341
msgstr ""
2342
2342
2343
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2343
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2344
2344
msgid "no available NIC"
2345
2345
msgstr ""
2346
2346
Original file line number Diff line number Diff line change 7
7
msgstr ""
8
8
"Project-Id-Version : \n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2018-10-11 14:16 +1100\n "
10
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
11
11
"PO-Revision-Date : 2018-08-30 23:04-0700\n "
12
12
"
Last-Translator :
Timothy <[email protected] >\n "
13
13
"Language-Team : fil\n "
@@ -2358,7 +2358,7 @@ msgstr "Hindi supportado ang RTC sa board na ito"
2358
2358
msgid "RTC calibration is not supported on this board"
2359
2359
msgstr "RTC calibration ay hindi supportado ng board na ito"
2360
2360
2361
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2361
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2362
2362
msgid "no available NIC"
2363
2363
msgstr ""
2364
2364
Original file line number Diff line number Diff line change 7
7
msgstr ""
8
8
"Project-Id-Version : 0.1\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2018-10-11 17:02 +1100\n "
10
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
11
11
"PO-Revision-Date : 2018-08-14 11:01+0200\n "
12
12
"
Last-Translator :
Pierrick Couturier <[email protected] >\n "
13
13
"Language-Team : fr\n "
@@ -2354,7 +2354,7 @@ msgstr "RTC non supportée sur cette carte"
2354
2354
msgid "RTC calibration is not supported on this board"
2355
2355
msgstr "calibration de la RTC non supportée sur cette carte"
2356
2356
2357
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2357
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2358
2358
#, fuzzy
2359
2359
msgid "no available NIC"
2360
2360
msgstr "busio.UART n'est pas disponible"
@@ -2522,10 +2522,10 @@ msgstr "'S' et 'O' ne sont pas des types de format supportés"
2522
2522
msgid "too many arguments provided with the given format"
2523
2523
msgstr "trop d'arguments fournis avec ce format"
2524
2524
2525
- #, fuzzy
2526
- #~ msgid "palette must be displayio.Palette"
2527
- #~ msgstr "la palette doit être longue de 32 octets"
2528
-
2529
2525
#, fuzzy
2530
2526
#~ msgid "value_size must be power of two"
2531
2527
#~ msgstr "'len' doit être un multiple de 4"
2528
+
2529
+ #, fuzzy
2530
+ #~ msgid "palette must be displayio.Palette"
2531
+ #~ msgstr "la palette doit être longue de 32 octets"
Original file line number Diff line number Diff line change 8
8
msgstr ""
9
9
"Project-Id-Version : PACKAGE VERSION\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-10-11 14:15 +1100\n "
11
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
12
12
"PO-Revision-Date : 2018-10-02 16:27+0200\n "
13
13
"
Last-Translator :
Enrico Paganin <[email protected] >\n "
14
14
"Language-Team : \n "
@@ -2344,7 +2344,7 @@ msgstr "RTC non supportato su questa scheda"
2344
2344
msgid "RTC calibration is not supported on this board"
2345
2345
msgstr "calibrazione RTC non supportata su questa scheda"
2346
2346
2347
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2347
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2348
2348
#, fuzzy
2349
2349
msgid "no available NIC"
2350
2350
msgstr "busio.UART non ancora implementato"
Original file line number Diff line number Diff line change 8
8
msgstr ""
9
9
"Project-Id-Version : PACKAGE VERSION\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-10-11 14:17 +1100\n "
11
+ "POT-Creation-Date : 2018-10-11 22:08 +1100\n "
12
12
"PO-Revision-Date : 2018-10-02 21:14-0000\n "
13
13
"Last-Translator : \n "
14
14
"Language-Team : \n "
@@ -2299,7 +2299,7 @@ msgstr "O RTC não é suportado nesta placa"
2299
2299
msgid "RTC calibration is not supported on this board"
2300
2300
msgstr "A calibração RTC não é suportada nesta placa"
2301
2301
2302
- #: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2302
+ #: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
2303
2303
msgid "no available NIC"
2304
2304
msgstr ""
2305
2305
Original file line number Diff line number Diff line change 36
36
37
37
#include "shared-bindings/network/__init__.h"
38
38
39
+ #if MICROPY_PY_NETWORK
40
+
39
41
//| :mod:`network` --- Network Interface Management
40
42
//| ===============================================
41
43
//|
42
44
//| .. module:: network
43
45
//| :synopsis: Network Interface Management
44
46
//| :platform: SAMD
45
-
46
- #if MICROPY_PY_NETWORK
47
-
48
- /// \module network - network configuration
49
- ///
50
- /// This module provides a registry of configured NICs.
47
+ //|
48
+ //| This module provides a registry of configured NICs.
49
+ //| It is used by the 'socket' module to look up a suitable
50
+ //| NIC when a socket is created.
51
+ //|
52
+ //| .. function:: route
53
+ //|
54
+ //| Returns a list of all configured NICs.
55
+ //|
51
56
52
57
STATIC mp_obj_t network_route (void ) {
53
58
return MP_OBJ_FROM_PTR (& MP_STATE_PORT (mod_network_nic_list ));
You can’t perform that action at this time.
0 commit comments