16 #ifndef __M2M_CONNECTION_SECURITY_H__ 17 #define __M2M_CONNECTION_SECURITY_H__ 25 class M2MConnectionSecurityPimpl;
69 int init(
const M2MSecurity *security, uint16_t security_instance_id,
bool is_server_ping);
106 int read(
unsigned char* buffer, uint16_t len);
144 void update_network_rtt_estimate(uint8_t rtt_estimate);
150 bool is_cid_available();
157 void set_cid_value(
const uint8_t *data_ptr,
const size_t data_len);
160 M2MConnectionSecurityPimpl* _private_impl;
162 friend class Test_M2MConnectionSecurity;
166 #endif //__M2M_CONNECTION_SECURITY_H__ int send_message(unsigned char *message, int len)
Sends data to the server.
Definition: m2mconnectionhandler.h:30
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
int init(const M2MSecurity *security, uint16_t security_instance_id, bool is_server_ping)
Initiatlizes the socket connection states.
~M2MConnectionSecurity()
Default Destructor.
void reset()
Resets the socket connection states.
Definition: m2mconfig.h:113
File defining all system build time configuration used by mbed-client.
void set_cid_value(const uint8_t *data_ptr, const size_t data_len)
Internal test function. Set CID for current tls session.
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 connect(M2MConnectionHandler *connHandler, bool is_server_ping=false)
Connects the client to the server.
int start_connecting_non_blocking(M2MConnectionHandler *connHandler)
Starts the connection in non-blocking mode.