|
static const char * | GetMyHostName () |
|
net_socket_t | m_socket |
|
int | m_rcvbuf |
|
int | m_errno |
|
int | m_attempt |
|
struct timeval | m_timeout |
|
Definition at line 52 of file securesocket.h.
◆ Connect()
bool SecureSocket::Connect |
( |
const char * |
server, |
|
|
unsigned |
port, |
|
|
int |
rcvbuf |
|
) |
| |
|
virtual |
Try to connect the socket to an address name, port.
- Parameters
-
server | the destination address name |
port | the destination port |
rcvbuf | the size of read buffer, else 0 for SOCKET_RCVBUF_MINSIZE |
- Returns
- true on success, else false
Reimplemented from NSROOT::TcpSocket.
Definition at line 351 of file securesocket.cpp.
◆ Disconnect()
void SecureSocket::Disconnect |
( |
| ) |
|
|
virtual |
◆ IsValid()
bool SecureSocket::IsValid |
( |
| ) |
const |
|
virtual |
◆ ReceiveData()
size_t SecureSocket::ReceiveData |
( |
void * |
buf, |
|
|
size_t |
n |
|
) |
| |
|
virtual |
Read data from the socket.
- Parameters
-
buf | the pointer to write received data |
n | the number of byte to read |
- Returns
- the number of received byte
Reimplemented from NSROOT::TcpSocket.
Definition at line 359 of file securesocket.cpp.
◆ SendData()
bool SecureSocket::SendData |
( |
const char * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
Send data into the socket.
- Parameters
-
buf | the pointer to data |
size | the number of byte to send |
- Returns
- true when succeeded, else false
Reimplemented from NSROOT::TcpSocket.
Definition at line 366 of file securesocket.cpp.
The documentation for this class was generated from the following files: