aboutsummaryrefslogtreecommitdiff
path: root/extmod/modusocket.c
AgeCommit message (Collapse)Author
2022-06-02all: Remove third argument to MP_REGISTER_MODULE.Damien George
It's no longer needed because this macro is now processed after preprocessing the source code via cpp (in the qstr extraction stage), which means unused MP_REGISTER_MODULE's are filtered out by the preprocessor. Signed-off-by: Damien George <damien@micropython.org>
2022-05-25extmod/modusocket: Add sendall function.iabdalkader
2022-05-25extmod/modusocket: Add timeout and callback to socket object.iabdalkader
2022-05-25extmod/modusocket: Fix socket_make_new argument parsing.iabdalkader
2022-05-25extmod/modusocket: Add support for socket events callback.iabdalkader
Add support for the special sockopt 20.
2022-05-25extmod/modusocket: Add socket type print function.iabdalkader
2022-05-25extmod/modusocket: Fix errcode returned from socket read/write.iabdalkader
Drivers should ensure a positive errcode is returned from read/write.
2022-05-25extmod/modusocket: Bind unconnected socket to default NIC in setsockopt.iabdalkader
Bind socket to default NIC if setsockopt is called before the socket is bound, to allow setting SO_REUSEADDR before calling socket_bind(). Fixes issue #8653.
2022-05-25extmod/modusocket: Fix polling of a new socket.iabdalkader
New sockets should return HUP and WR when polled, following modlwip.
2022-05-24extmod: Revert accidental usocket->socket rename.Jim Mussared
The registration of the usocket module was accidentally changed to socket in moving to MP_REGISTER_MODULE in bb794f05b7fef75696118ea1eb03a769a9fac40d
2022-05-18extmod: Make port-included extmod modules use MP_REGISTER_MODULES.Jim Mussared
_onewire, socket, and network were previously added by the port rather than objmodule.c. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-04-11extmod/modusocket: Provide config macro for socket.listen backlog deflt.Damien George
To make it possible to change this value for any given port or board. Signed-off-by: Damien George <damien@micropython.org>
2022-04-11extmod/modusocket: Implement optional socket.listen backlog argument.Jon Bjarni Bjarnason
This follows the CPython change: https://bugs.python.org/issue21455 Socket listen backlog defaults to 2 if not given, based on most bare metal targets not having many resources for a large backlog. On UNIX it defaults to SOMAXCONN or 128, whichever is less.
2022-01-21extmod/modusocket: Support additional args to getaddrinfo.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-21extmod/modusocket: Create new sockets in blocking mode.iabdalkader
To conform with CPython and other MicroPython ports.
2022-01-21extmod/modusocket: Add makefile() method and common socket options.iabdalkader
2022-01-21extmod/modusocket: Make setsockopt return if NIC is not connected.iabdalkader
2022-01-12extmod/modusocket: Initialise accepted socket state.iabdalkader
2022-01-12extmod/modusocket: Allow setting timeout on unbound sockets.iabdalkader
For an extended state socket, if settimeout() is called before a NIC is bound, save the timeout until the NIC is bound.
2021-09-19rp2: Add framework for networking.iabdalkader
MICROPY_PY_NETWORK and MICROPY_PY_USOCKET need to be enabled by a board to get networking. No NICs have yet been defined.
2021-09-15extmod/modnetwork: Remove modnetwork socket u_state member.iabdalkader
To simplify the socket state. The CC3K driver (see drivers/cc3000/inc/socket.h and src/socket.c) has socket() returning an INT16 so there is now enough room to store it directly in the fileno member.
2021-09-15extmod/modusocket: Add read/write stream methods to socket object.iabdalkader
Following other socket implementations.
2021-09-15extmod/modnetwork: Add extended socket state.iabdalkader
2021-09-15extmod: Move modnetwork and modusocket from stm32 to extmod.iabdalkader
So they can be used by other ports.