16 #ifndef __M2M_CONNECTION_SECURITY_H__ 17 #define __M2M_CONNECTION_SECURITY_H__ 25 class M2MConnectionSecurityPimpl;
105 int read(
unsigned char* buffer, uint16_t len);
145 M2MConnectionSecurityPimpl* _private_impl;
147 friend class Test_M2MConnectionSecurity;
151 #endif //__M2M_CONNECTION_SECURITY_H__ int send_message(unsigned char *message, int len)
Sends data to the server.
Definition: m2mconnectionhandler.h:32
int set_dtls_socket_callback(void(*foo)(void *), void *argument)
Set socket information for this secure connection.
int read(unsigned char *buffer, uint16_t len)
Reads the data received from the server.
int continue_connecting()
Continues connectivity logic for a secure connection.
void set_socket(void *socket, void *address)
Set socket information for this secure connection.
Definition: m2msecurity.h:31
void set_random_number_callback(random_number_cb callback)
Sets the function callback that is called by mbed Client to fetch a random number from an application...
Definition: m2mconnectionsecurity.h:36
~M2MConnectionSecurity()
Default Destructor.
void reset()
Resets the socket connection states.
Definition: m2mconfig.h:116
File defining all system build time configuration used by mbed-client.
int connect(M2MConnectionHandler *connHandler)
Connects the client to the server.
void set_entropy_callback(entropy_cb callback)
Sets the function callback that is called by mbed Client to provide an entropy source from an applica...
int init(const M2MSecurity *security, uint16_t security_instance_id)
Initiatlizes the socket connection states.
int start_connecting_non_blocking(M2MConnectionHandler *connHandler)
Starts the connection in non-blocking mode.