|
struct | SocketAddress |
| The M2MSocketAddress struct. A unified container for holding socket address data across different platforms. More...
|
|
|
enum | ServerType { Bootstrap,
LWM2MServer
} |
|
enum | NetworkInterfaceStatus { NetworkInterfaceConnected,
NetworkInterfaceDisconnected
} |
|
, Defines the type of the server that the client wants to use.
Indicates that the server address resolving is ready.
- Parameters
-
address | The resolved socket address. |
server_type | The type of the server. |
server_port | The port of the resolved server address. |
Indicates that data is available from socket.
- Parameters
-
data | The data read from the socket. |
data_size | The length of the data read from the socket. |
address | The address of the server where the data is coming from. |
virtual void M2MConnectionObserver::socket_error |
( |
int |
error_code, |
|
|
bool |
retry = true |
|
) |
| |
|
pure virtual |
Indicates an error occured in socket.
- Parameters
-
error_code | The error code from socket, it cannot be used any further. |
retry | Indicates whether to re-establish the connection. |
The documentation for this class was generated from the following file: