Introduce MG_NET_IF var, replaces MG_NET_IF_*

Possible values:
  MG_NET_IF_SOCKET (1) - traditional BSD socket API
  MG_NET_IF_SIMPLELINK (2) - TI's SimpleLink socket interface
  MG_NET_IF_LWIP_LOW_LEVEL - a net_if implementation that uses LWIP's
    low-level API, when LWIP_SOCKET is not available.

PUBLISHED_FROM=a5c0aebb7b6bdb1f1f4cb3210763d16f3ab5e133
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-10-17 18:21:58 +00:00
1 parent 31c5ef1bc3
commit 4ef3a778c1
3 files changed
+57 -38

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ signature: |
struct mbuf recv_mbuf; /* Received data */
struct mbuf send_mbuf; /* Data scheduled for sending */
#if MG_ENABLE_SSL
#if !defined(MG_SOCKET_SIMPLELINK)
#if MG_NET_IF != MG_NET_IF_SIMPLELINK
SSL *ssl;
SSL_CTX *ssl_ctx;
#else