added Socket::sendx() that accept a buffer vector and a destination address

This commit is contained in:
2018-10-22 09:42:54 +00:00
parent 83f800799d
commit 1e08cd4f65
5 changed files with 99 additions and 13 deletions

View File

@ -444,7 +444,7 @@ public:
return this->getValueAt(0);
}
const T& getLast() const
const T& getLast () const
{
return this->getValueAt(this->getSize() - 1);
}

View File

@ -78,7 +78,7 @@ extern "C" {
QSE_EXPORT qse_dhcp6_opt_hdr_t* qse_dhcp6_find_option (
const qse_dhcp6_pktinf_t* pkt,
int code
int code
);
#ifdef __cplusplus

View File

@ -109,6 +109,7 @@ public:
int sendx (const void* buf, qse_size_t len, qse_size_t* total_sent = QSE_NULL) QSE_CPP_NOEXCEPT;
int sendx (const void* buf, qse_size_t len, const SocketAddress& dstaddr, qse_size_t* total_sent = QSE_NULL) QSE_CPP_NOEXCEPT;
int sendx (qse_ioptl_t* vec, int count, qse_size_t* total_sent = QSE_NULL) QSE_CPP_NOEXCEPT;
int sendx (qse_ioptl_t* vec, int count, const SocketAddress& dstaddr, qse_size_t* total_sent = QSE_NULL) QSE_CPP_NOEXCEPT;
qse_ssize_t receive (void* buf, qse_size_t len) QSE_CPP_NOEXCEPT;
qse_ssize_t receive (void* buf, qse_size_t len, SocketAddress& srcaddr) QSE_CPP_NOEXCEPT;