Nol.A SDK Library 26.11.2
For IoT System Software Development
Loading...
Searching...
No Matches
TCPClientSecure Class Reference
Inheritance diagram for TCPClientSecure:
TCPClient Stream Print

Public Member Functions

 TCPClientSecure (int socket)
int connect (IPAddress ip, uint16_t port)
int connect (const char *host, uint16_t port)
int connect (IPAddress ip, uint16_t port, const char *rootCABuff, const char *cli_cert, const char *cli_key)
int connect (const char *host, uint16_t port, const char *rootCABuff, const char *cli_cert, const char *cli_key)
size_t write (uint8_t data)
 문자 하나를 출력합니다.
size_t write (const uint8_t *buf, size_t size)
 데이터 배열을 출력합니다.
int available ()
int read ()
int read (uint8_t *buf, size_t size)
int peek ()
void flush ()
void stop ()
uint8_t connected ()
int lastError (char *buf, const size_t size)
void setCACert (const char *rootCA)
void setCertificate (const char *client_ca)
void setPrivateKey (const char *private_key)
 operator bool ()
TCPClientSecure & operator= (const TCPClientSecure &other)
bool operator== (const bool value)
bool operator!= (const bool value)
bool operator== (const TCPClientSecure &)
bool operator!= (const TCPClientSecure &rhs)
int socket ()
Public Member Functions inherited from TCPClient
 TCPClient (int fd)
int read (uint8_t *buf, size_t size)
void stop ()
uint8_t connected ()
 operator bool ()
TCPClient & operator= (const TCPClient &other)
bool operator== (const bool value)
bool operator!= (const bool value)
bool operator== (const TCPClient &)
bool operator!= (const TCPClient &rhs)
int fd () const
int setSocketOption (int option, char *value, size_t len)
int setOption (int option, int *value)
int getOption (int option, int *value)
int setTimeout (uint32_t seconds)
int setNoDelay (bool nodelay)
bool getNoDelay ()
IPAddress remoteIP () const
IPAddress remoteIP (int fd) const
uint16_t remotePort () const
uint16_t remotePort (int fd) const
IPAddress localIP () const
IPAddress localIP (int fd) const
uint16_t localPort () const
uint16_t localPort (int fd) const
Public Member Functions inherited from Stream
void setTimeout (unsigned long timeout)
bool find (const char *target)
bool find (uint8_t *target)
bool find (const char *target, size_t length)
bool find (const uint8_t *target, size_t length)
bool find (char target)
bool findUntil (const char *target, const char *terminator)
bool findUntil (const uint8_t *target, const char *terminator)
bool findUntil (const char *target, size_t targetLen, const char *terminate, size_t termLen)
bool findUntil (const uint8_t *target, size_t targetLen, const char *terminate, size_t termLen)
long parseInt ()
float parseFloat ()
size_t readBytes (char *buffer, size_t length)
size_t readBytes (uint8_t *buffer, size_t length)
size_t readBytesUntil (char terminator, char *buffer, size_t length)
size_t readBytesUntil (char terminator, uint8_t *buffer, size_t length)
std::string readString ()
std::string readStringUntil (char terminator)
Public Member Functions inherited from Print
int getWriteError ()
void clearWriteError ()
size_t write (const char *str)
 문자열을 출력합니다.
size_t write (const char *buffer, size_t size)
 데이터 배열을 출력합니다.
virtual int availableForWrite ()
size_t print (const __FlashStringHelper *)
 프로그램 메모리(읽기 전용 플래시) 영역에 저장된 문자열을 출력합니다.
size_t print (const std::string &)
 문자열을 출력합니다.
size_t print (const char[])
 NULL로 종료되는 문자열을 출력합니다.
size_t print (char)
 문자 하나를 출력합니다.
size_t print (unsigned char, int=DEC)
 부호가 없는(unsigned) 8-byte 정수를 지정한 진수 형태로 출력합니다.
size_t print (int, int=DEC)
 int 형 정수를 지정한 진수 형태로 출력합니다.
size_t print (unsigned int, int=DEC)
 unsigned int 형 정수를 지정한 진수 형태로 출력합니다.
size_t print (long, int=DEC)
 long 형 정수를 지정한 진수 형태로 출력합니다.
size_t print (unsigned long, int=DEC)
 unsigned long 형 정수를 지정한 진수 형태로 출력합니다.
size_t print (double, int=2)
 double 형 실수를 지정한 소수점 이하 출력 개수로 출력합니다.
size_t print (const Printable &)
 Printable을 구현한 클래스를 출력합니다.
size_t println (const __FlashStringHelper *)
 프로그램 메모리(읽기 전용 플래시) 영역에 저장된 문자열과 개행문자(CR+LF)를 출력합니다.
size_t println (const std::string &s)
 문자열과 개행문자(CR+LF)를 출력합니다.
size_t println (const char[])
 NULL로 종료되는 문자열과 개행문자(CR+LF)를 출력합니다.
size_t println (char)
 문자 하나와 개행문자(CR+LF)를 출력합니다.
size_t println (unsigned char, int=DEC)
 부호가 없는(unsigned) 8-byte 정수를 지정한 진수 형태로, 개행문자(CR+LF)와 함께 출력합니다.
size_t println (int, int=DEC)
 int 형 정수를 지정한 진수 형태로, 개행문자(CR+LF)와 함께 출력합니다.
size_t println (unsigned int, int=DEC)
 unsigned int 형 정수를 지정한 진수 형태로, 개행문자(CR+LF)와 함께 출력합니다.
size_t println (long, int=DEC)
 long 형 정수를 지정한 진수 형태로, 개행문자(CR+LF)와 함께 출력합니다.
size_t println (unsigned long, int=DEC)
 unsigned long 형 정수를 지정한 진수 형태로, 개행문자(CR+LF)와 함께 출력합니다.
size_t println (double, int=2)
 double 형 실수를 지정한 소수점 이하 출력 개수로, 개행문자(CR+LF)와 함께 출력합니다.
size_t println (const Printable &)
 Printable을 구현한 클래스를, 개행문자(CR+LF)와 함께 출력합니다.
size_t println (void)
 개행문자(CR+LF)를 출력합니다.
virtual int printf (const char *,...)
 printf 출력을 내보냅니다.

Public Attributes

TCPClientSecure * next
Public Attributes inherited from TCPClient
TCPClient * next

Protected Attributes

void * _sslclient
int _lastError = 0
const char * _CA_cert
const char * _cert
const char * _private_key
Protected Attributes inherited from TCPClient
int _sockfd
bool _connected
Protected Attributes inherited from Stream
unsigned long _timeout
unsigned long _startMillis

Additional Inherited Members

Protected Member Functions inherited from Stream
int timedRead ()
int timedPeek ()
int peekNextDigit ()
long parseInt (char skipChar)
float parseFloat (char skipChar)
Protected Member Functions inherited from Print
void setWriteError (int err=1)

Member Function Documentation

◆ available()

int TCPClientSecure::available ( )
virtual

Reimplemented from TCPClient.

◆ connect() [1/2]

int TCPClientSecure::connect ( const char * host,
uint16_t port )
virtual

Reimplemented from TCPClient.

◆ connect() [2/2]

int TCPClientSecure::connect ( IPAddress ip,
uint16_t port )
virtual

Reimplemented from TCPClient.

◆ flush()

void TCPClientSecure::flush ( )
inlinevirtual

Reimplemented from TCPClient.

54{}

◆ operator bool()

TCPClientSecure::operator bool ( )
inline
63 {
64 return connected();
65 }

◆ operator!=() [1/2]

bool TCPClientSecure::operator!= ( const bool value)
inline
72 {
73 return bool() != value;
74 }

◆ operator!=() [2/2]

bool TCPClientSecure::operator!= ( const TCPClientSecure & rhs)
inline
77 {
78 return !this->operator==(rhs);
79 };

◆ operator==()

bool TCPClientSecure::operator== ( const bool value)
inline
68 {
69 return bool() == value;
70 }

◆ peek()

int TCPClientSecure::peek ( )
inlinevirtual

Reimplemented from TCPClient.

51 {
52 return 0;
53 }

◆ read()

int TCPClientSecure::read ( )
virtual

Reimplemented from TCPClient.

◆ write() [1/2]

size_t TCPClientSecure::write ( const uint8_t * buffer,
size_t size )
virtual

데이터 배열을 출력합니다.

Parameters
buf전송할 배열의 시작 포인터
len전송할 배열의 길이 (byte)

Reimplemented from TCPClient.

◆ write() [2/2]

size_t TCPClientSecure::write ( uint8_t data)
virtual

문자 하나를 출력합니다.

Parameters
val전송할 문자
Returns
전송된 문자 수

Reimplemented from TCPClient.


The documentation for this class was generated from the following file: