Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.

Modules

 Clients
 Provides base TCP client.
 
 Servers
 Provides the base for building TCP servers.
 

Classes

struct  SslValidator
 
class  SslValidatorList
 
class  TcpConnection
 

Macros

#define NETWORK_DEBUG
 
#define NETWORK_SEND_BUFFER_SIZE   1024
 

Typedefs

typedef std::function< bool(SSL *ssl, void *data)> SslValidatorCallback
 Validator callback function. More...
 
typedef Delegate< void(TcpConnection &)> TcpConnectionDestroyedDelegate
 

Enumerations

enum  TcpConnectionEvent {
  eTCE_Connected = 0,
  eTCE_Received,
  eTCE_Sent,
  eTCE_Poll
}
 

Detailed Description

Typedef Documentation

typedef std::function<bool(SSL* ssl, void* data)> SslValidatorCallback

Validator callback function.

Parameters
sslContains certificate to validate (may be NULL)
dataData for the callback to use
Return values
booltrue if validation succeeded
Note
Callback must ALWAYS release any allocate memory before returning. If called with ssl = NULL then just release memory and return false.