16 #ifndef M2M_CONNECTION_OBSERVER_H__ 17 #define M2M_CONNECTION_OBSERVER_H__ 39 NetworkInterfaceConnected,
40 NetworkInterfaceDisconnected
41 }NetworkInterfaceStatus;
70 virtual void socket_error(
int error_code,
bool retry =
true) = 0;
80 const uint16_t server_port) = 0;
87 virtual void network_interface_status_change(NetworkInterfaceStatus status) = 0;
90 #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:33
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:48
NetworkStack
An enum defining different kinds of network stacks that can be used by mbed Client.
Definition: m2minterface.h:138
Definition: m2mconnectionobserver.h:24
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.