16 #ifndef M2M_CONNECTION_OBSERVER_H__ 17 #define M2M_CONNECTION_OBSERVER_H__ 41 NetworkInterfaceConnected,
42 NetworkInterfaceDisconnected
43 }NetworkInterfaceStatus;
72 virtual void socket_error(
int error_code,
bool retry =
true) = 0;
82 const uint16_t server_port) = 0;
89 virtual void network_interface_status_change(NetworkInterfaceStatus status) = 0;
92 #endif // M2M_CONNECTION_OBSERVER_H__ virtual void address_ready(const M2MConnectionObserver::SocketAddress &address, M2MConnectionObserver::ServerType server_type, const uint16_t server_port)=0
Indicates that the server address resolving is ready.
ServerType
Definition: m2mconnectionobserver.h:35
virtual void data_available(uint8_t *data, uint16_t data_size, const M2MConnectionObserver::SocketAddress &address)=0
Indicates that data is available from socket.
The M2MSocketAddress struct. A unified container for holding socket address data across different pla...
Definition: m2mconnectionobserver.h:50
M2MInterface. This class provides an interface for handling all mbed Client interface operations defi...
NetworkStack
An enum defining different kinds of network stacks that can be used by mbed Client.
Definition: m2minterface.h:131
Definition: m2mconnectionobserver.h:26
virtual void socket_error(int error_code, bool retry=true)=0
Indicates an error occured in socket.
virtual void data_sent()=0
Indicates that data has been sent successfully.