int OsSocket::write(const char* buffer, int bufferLength, long waitMilliseconds) { int numBytes = 0; if(isReadyToWrite(waitMilliseconds)) { numBytes = write(buffer, bufferLength); } return(numBytes); }
int OsSSLConnectionSocket::write(const char* buffer, int bufferLength, long waitMilliseconds) { int bytesWritten = -1; if(isReadyToWrite(waitMilliseconds)) { bytesWritten = SSL_write (mSSL, buffer, bufferLength); } return(bytesWritten); }