Skip to content

UNIX build missing socket.sendall() method #16803

@petrkr

Description

@petrkr

Port, board and/or hardware

UNIX

MicroPython version

$ micropython 
MicroPython v1.24.1 on 2025-02-24; linux [GCC 14.2.1] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import socket
>>> s = socket.socket()
>>> dir(s)
['__class__', 'close', 'read', 'readinto', 'readline', 'send', 'write', 'accept', 'bind', 'connect', 'fileno', 'listen', 'makefile', 'recv', 'recvfrom', 'sendto', 'setblocking', 'setsockopt', 'settimeout']
>>> 

Regarding to documentation, sendall is supported. On ESP32 build it is available

MicroPython v1.24.1 on 2024-11-29; Generic ESP32 module with ESP32                                        
Type "help()" for more information.                                                                       
>>>                                                                                                       
>>> import socket                                                                                         
>>> s = socket.socket()                                                                                                                                                                                          
>>> dir (s)                                                                                                                                                                                                      
['__class__', 'close', 'read', 'readinto', 'readline', 'send', 'write', '__del__', 'accept', 'bind', 'conn
ect', 'fileno', 'listen', 'makefile', 'recv', 'recvfrom', 'sendall', 'sendto', 'setblocking', 'setsockopt'
, 'settimeout']                                                                                           

Unix build was created by using AUR package https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=micropython

Reproduction

Build unix version of uPy
import socket

try to call sendall(packet)

Expected behaviour

Method will be there, so do not need rewrite libraries just for one port

Observed behaviour

what is this ?

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy