library/src/network/BP-NetworkSSL.cc
// writes size bytes of buff to sock's ssl connection
writes size bytes of buff to sock's ssl connection
writes size bytes of buff to sock ' s ssl connection
int BP_SSLWrite(P_BP_NETWORK_HANDLE netHandle, BYTE * buff, int size)
{
	int length = 0;
	int totalWrite = 0;
	if(netHandle == 0)
		return 0;
	if(buff == 0)
		return 0;
	do
	{
		length = SSL_write(netHandle->sslOpts->ssl, buff, size);
		buff = &buff[length];
		size -= length;
		totalWrite += length;
	} while(length > 0 && size > 0);
	if(length <= 0)
		return totalWrite;
	return totalWrite;
}
int BP_SSLWrite ( P_BP_NETWORK_HANDLE netHandle , BYTE * buff , int size ) { int length = 0 ; int totalWrite = 0 ; if ( netHandle == 0 ) return 0 ; if ( buff == 0 ) return 0 ; do { length = SSL_write ( netHandle -> sslOpts -> ssl , buff , size ) ; buff = & buff [ length ] ; size -= length ; totalWrite += length ; } while ( length > 0 && size > 0 ) ; if ( length <= 0 ) return totalWrite ; return totalWrite ; }
writes size bytes of buff to sock's ssl connection
writes size bytes of buff to sock ' s ssl connection
// this loop isn't really necessary, but in case the openssl // crazy people decide to make write act like read, then this'll // automagically fix the "problem"