staticssize_trecvn(sockfd_tfd,void*vptr,size_tn,intflags)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
staticssize_trecvn(sockfd_tfd,void*vptr,size_tn,intflags=0)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
{
{
size_tnleft;
size_tnleft;
ssize_tnread;
ssize_tnread;
...
@@ -432,7 +432,7 @@ namespace rlib {
...
@@ -432,7 +432,7 @@ namespace rlib {
}
}
return(n);/* return >= 0 */
return(n);/* return >= 0 */
}
}
staticssize_tsendn(sockfd_tfd,constvoid*vptr,size_tn,intflags)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
staticssize_tsendn(sockfd_tfd,constvoid*vptr,size_tn,intflags=0)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
{
{
size_tnleft;
size_tnleft;
ssize_tnwritten;
ssize_tnwritten;
...
@@ -453,7 +453,7 @@ namespace rlib {
...
@@ -453,7 +453,7 @@ namespace rlib {
}
}
return(n);
return(n);
}
}
staticssize_trecvall(sockfd_tfd,void**pvptr,size_tinitSize,intflags)noexcept//Return -1 on error, read bytes on success. pvptr must be a malloc/calloced buffer, I'll malloc one if *pvptr is NULL.
staticssize_trecvall(sockfd_tfd,void**pvptr,size_tinitSize,intflags=0)noexcept//Return -1 on error, read bytes on success. pvptr must be a malloc/calloced buffer, I'll malloc one if *pvptr is NULL.
{
{
size_tcurrent=initSize?initSize:1024;
size_tcurrent=initSize?initSize:1024;
void*vptr=*pvptr;
void*vptr=*pvptr;
...
@@ -504,7 +504,7 @@ namespace rlib {
...
@@ -504,7 +504,7 @@ namespace rlib {
#else
#else
// POSIX sockIO
// POSIX sockIO
public:
public:
staticssize_trecvn(sockfd_tfd,void*vptr,size_tn,intflags)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
staticssize_trecvn(sockfd_tfd,void*vptr,size_tn,intflags=0)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
{
{
size_tnleft;
size_tnleft;
ssize_tnread;
ssize_tnread;
...
@@ -526,7 +526,7 @@ namespace rlib {
...
@@ -526,7 +526,7 @@ namespace rlib {
}
}
return(n);/* return success */
return(n);/* return success */
}
}
staticssize_tsendn(sockfd_tfd,constvoid*vptr,size_tn,intflags)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
staticssize_tsendn(sockfd_tfd,constvoid*vptr,size_tn,intflags=0)noexcept//Return -1 on error, read bytes on success, blocks until nbytes done.
{
{
size_tnleft;
size_tnleft;
ssize_tnwritten;
ssize_tnwritten;
...
@@ -547,7 +547,7 @@ namespace rlib {
...
@@ -547,7 +547,7 @@ namespace rlib {
}
}
return(n);
return(n);
}
}
staticssize_trecvall(sockfd_tfd,void**pvptr,size_tinitSize,intflags)noexcept//Return -1 on error, read bytes on success. pvptr must be a malloc/calloced buffer, I'll malloc one if *pvptr is NULL.
staticssize_trecvall(sockfd_tfd,void**pvptr,size_tinitSize,intflags=0)noexcept//Return -1 on error, read bytes on success. pvptr must be a malloc/calloced buffer, I'll malloc one if *pvptr is NULL.