SMART_COMPONENTS_SOCKET/Gsm_SSL_SockInt.h

28 lines
1.1 KiB
C

//
// Created by cfif on 24.05.2024.
//
#ifndef SMART_COMPONENTS_GSM_SSL_SOCKINT_H
#define SMART_COMPONENTS_GSM_SSL_SOCKINT_H
#include "GsmWithGnss.h"
void Gsm_Socket_SSL_close(tGsmWithGnss *env, uint8_t contextId);
uint8_t Gsm_Socket_SSL_open(tGsmWithGnss *env, eSocketType type, eAtGsmSimComA7600_SSL_Type clientType, char *addr, size_t addrSize, uint16_t port, uint32_t timeout);
size_t Gsm_Socket_SSL_read(tGsmWithGnss *env, uint8_t contextId, uint8_t *data, size_t size, uint32_t timeout);
size_t Gsm_Socket_SSL_send(tGsmWithGnss *env, uint8_t contextId, uint8_t *data, size_t size, uint32_t timeout);
eSocketStatus Gsm_Socket_SSL_status(tGsmWithGnss *env, uint8_t contextId);
void GsmSocketSlot_SSL_Init(tGsmSocketSlot *slot, uint16_t bufLen);
void GsmSocketSlot_SSL_Set(tGsmSocketSlot *slot, eSocketType type, char *addr, size_t addrSize, uint16_t port);
void GsmSocketSlot_SSL_Clear(tGsmSocketSlot *slot);
bool GsmSocketSlot_SSL_IsClear(tGsmSocketSlot *slot);
void Gsm_SSL_InitSocket(tGsmWithGnss *env,uint16_t bufSize);
void Gsm_InitIO(tGsmWithGnss *env);
#endif //SMART_COMPONENTS_GSM_SSL_SOCKINT_H