Damien George
|
4ec803a42a
|
all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.
|
2017-08-21 21:34:23 +10:00 |
|
Paul Sokolovsky
|
09b561f108
|
zephyr/modusocket: Update struct sockaddr family field name.
Was changed to "sa_family" for POSIX compatibility.
|
2017-08-19 11:45:21 +03:00 |
|
Paul Sokolovsky
|
63edc2e78b
|
zephyr/modusocket: Fully switch to native Zephyr sockets.
|
2017-08-09 15:08:27 +03:00 |
|
Paul Sokolovsky
|
cb7ecda9f0
|
zephyr/modusocket: recv: Switch to native sockets.
|
2017-08-09 10:22:41 +03:00 |
|
Paul Sokolovsky
|
675ceb2dd9
|
zephyr/modusocket: send: Switch to native sockets.
|
2017-08-09 10:17:15 +03:00 |
|
Paul Sokolovsky
|
600f5afed3
|
zephyr/modusocket: bind, connect, listen, accept: Swtich to native sockets.
|
2017-08-08 12:32:08 +03:00 |
|
Paul Sokolovsky
|
6c55cdafa3
|
zephyr/modusocket: socket, close: Switch to native Zephyr socket calls.
|
2017-08-07 21:41:03 +03:00 |
|
Paul Sokolovsky
|
642d9fd2a5
|
zephyr/modusocket: Allow to use socketized net_context in upstream.
Accesses recv_q, accept_q directly in net_context.
|
2017-08-07 21:36:57 +03:00 |
|
Paul Sokolovsky
|
43f58386e0
|
zephyr/modusocket: getaddrinfo: Fix mp_obj_len() usage.
Return value is mp_obj_t, so needs to be accessed using
MP_OBJ_SMALL_INT_VALUE().
|
2017-06-03 16:11:53 +03:00 |
|
Paul Sokolovsky
|
011684bd4f
|
zephyr/modusocket: Use DEBUG_PRINT macro name as other modules do.
Indeed, just "DEBUG" is too generic.
|
2017-05-26 10:20:25 +03:00 |
|
Paul Sokolovsky
|
982e676902
|
zephyr/modusocket: getaddrinfo: Raise OSError on resolution timeout, etc.
|
2017-05-24 19:55:14 +03:00 |
|
Paul Sokolovsky
|
0912334f54
|
zephyr/modusocket: getaddrinfo: Use RAISE_ERRNO for proper error decoding.
|
2017-05-17 00:21:22 +03:00 |
|
Paul Sokolovsky
|
aa9ce283c2
|
zephyr/modusocket: Get rid of cur_pkt object member.
Instead, just peek a packet at the head of the queue and work with it.
|
2017-05-16 13:46:54 +03:00 |
|
Paul Sokolovsky
|
a3008e447c
|
zephyr/modusocket: First step to switch to alternative FIFO processing.
Here we wait for non-empty FIFO, and then directly access/drop its head
element.
|
2017-05-16 13:43:06 +03:00 |
|
Paul Sokolovsky
|
0c57979ce2
|
zephyr/modusocket: Implement getaddrinfo().
|
2017-05-13 16:42:35 +03:00 |
|
Paul Sokolovsky
|
86c4544ef9
|
zephyr/modusocket: If there're no packets in recv_q, cancel waiter.
This solves a case when socker_read() has blocked on fifo, and then peer
closed event arrives.
|
2017-05-13 16:22:14 +03:00 |
|
Paul Sokolovsky
|
69f0b4ad5b
|
zephyr/modusocket: Switch to net_pkt_append() returning length.
Requires patch in review.
|
2017-05-13 16:05:10 +03:00 |
|
Paul Sokolovsky
|
39d3335606
|
zephyr/modusocket: Update for net_pkt refactor.
|
2017-05-13 15:47:47 +03:00 |
|
Paul Sokolovsky
|
c022c9a2f0
|
zephyr/modusocket: Wrap pkt_get_info() call.
The most important info it returns are numbers of free buffers
in different pools (rx/tx packet headers, data fragments).
|
2017-05-13 15:23:31 +03:00 |
|
Paul Sokolovsky
|
50d7ed325a
|
zephyr/modusocket: Add SOL_SOCKET and SO_REUSEADDR constants.
|
2017-05-12 21:55:42 +03:00 |
|
Paul Sokolovsky
|
1659c0645d
|
zephyr/modusocket: Add dummy setsockopt() implementation.
|
2017-05-12 21:54:32 +03:00 |
|
Paul Sokolovsky
|
31bbcd448c
|
zephyr/modusocket: Add dummy makefile() implementation.
|
2017-04-27 14:57:49 +03:00 |
|
Paul Sokolovsky
|
868453d3d8
|
zephyr/modusocket: sock_read: Check socket status only at the start of packet.
Otherwise, if we already have a packet in progress, finish it first, before
check "peer closed" status.
|
2017-04-26 09:14:41 +03:00 |
|
Paul Sokolovsky
|
1fe0f678f8
|
zephyr/modusocket: Add read/readline/readinto stream methods.
|
2017-04-26 08:43:07 +03:00 |
|
Paul Sokolovsky
|
ef55be159c
|
zephyr/modusocket: Refactor recv() into stream read() method.
|
2017-04-26 08:43:07 +03:00 |
|