• Nathaniel Wesley Filardo's avatar
    Networking rampage and accumulated fixes (#3060) · af426d03
    Nathaniel Wesley Filardo authored
    * espconn: remove unused espconn code, take 1
    
    This is the easiest part of https://github.com/nodemcu/nodemcu-firmware/issues/3004 .
    It removes a bunch of functions that were never called in our tree.
    
    * espconn: De-orbit espconn_gethostbyname
    
    Further work on https://github.com/nodemcu/nodemcu-firmware/issues/3004
    
    While here, remove `mqtt`'s charming DNS-retry logic (which is neither
    shared with nor duplicated in other modules) and update its :connect()
    return value behavior and documentation.
    
    * espconn: remove scary global pktinfo
    
    A write-only global!  How about that.
    
    * net: remove deprecated methods
    
    All the TLS stuff moved over there a long time ago, and
    net_createUDPSocket should just do what it says on the tin.
    
    * espconn_secure: remove ESPCONN_SERVER support
    
    We can barely function as a TLS client; being a TLS server seems like a
    real stretch.  This code was never called from Lua anyway.
    
    * espconn_secure: more code rem...
    af426d03
net.c 30.9 KB