nodemcu-firmware/app/include/lwip
Nathaniel Wesley Filardo af426d0315 Networking rampage and accumulated fixes (#3060)
* 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 removal

* espconn_secure: simplify ssl options structure

There is nothing "ssl_packet" about this structure.  Get rid of the
terrifying "pbuffer" pointer.

Squash two structure types together and eliminate an unused field.

* espconn_secure: refactor mbedtls_msg_info_load

Split out espconn_mbedtls_parse, which we can use as part of our effort
towards addressing https://github.com/nodemcu/nodemcu-firmware/issues/3032

* espconn_secure: introduce TLS cert/key callbacks

The new feature part of https://github.com/nodemcu/nodemcu-firmware/issues/3032
Subsequent work will remove the old mechanism.

* tls: add deprecation warnings

* luacheck: net.ifinfo is a thing now

* tls: remove use of espconn->reverse

* mqtt: stop using espconn->reverse

Instead, just place the espconn structure itself at the top of the user
data.  This enlarges the structure somewhat but removes one more layer
of dynamic heap usage and NULL checks.

While here, simplify the code a bit.

* mqtt: remove redundant pointer to connect_info

Everywhere we have the mqtt_state_t we also have the lmqtt_userdata.

* mqtt: doc fixes

* mqtt: note bug

* tls: allow :on(...,nil) to unregister a callback
2020-06-09 22:26:52 +02:00
..
app Networking rampage and accumulated fixes (#3060) 2020-06-09 22:26:52 +02:00
api.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
api_msg.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
arch.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
autoip.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
debug.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
def.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
dhcp.h Add support for DCHP NTP server (option 42) (#2709) 2019-07-27 08:21:35 +02:00
dns.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
err.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
icmp.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
igmp.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
inet.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
inet_chksum.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
init.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
ip.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
ip_addr.h source file first commit, folder structure refact 2014-12-22 19:35:05 +08:00
ip_frag.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
mdns.h Upgrade to SDK 2.0.0 (#1435) 2016-12-11 21:03:00 +01:00
mem.h SDK 3.0 release (#2692) 2019-04-05 16:01:45 +01:00
memp.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
memp_std.h SSL rampage (#2938) 2020-06-09 22:26:06 +02:00
netbuf.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
netdb.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
netif.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
netifapi.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
opt.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
pbuf.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
puck_def.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
raw.h source file first commit, folder structure refact 2014-12-22 19:35:05 +08:00
sio.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
snmp.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
snmp_asn1.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
snmp_msg.h source file first commit, folder structure refact 2014-12-22 19:35:05 +08:00
snmp_structs.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
sockets.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
stats.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
sys.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
tcp.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
tcp_impl.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
tcpip.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
timers.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
udp.h trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00