In SslLib.h the func SslReceive is declared as follows :

Int16 SslReceive(UInt16 refnum,SslContext *ctx,void *buffer,UInt16
bufferLen,
UInt16 flags, void *fromAddr, UInt16 fromLen,
Int32 timeout,Err *errRet)

Note that the fromLen is UInt16, but the PalmOS 5 Ref says it is UInt16 *.

After fixing this declaration, my app works fine.

I checked the new update of PalmOS SDK R3 , the one that named
Palm_OS_54_Updates_68K_DR1.zip that is announced yesterday, it still has
that typo.

I hope this one will be fixed in next update.

Vu


----- Original Message ----- 
From: "Vu Pham" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 3:35 PM
Subject: SslReceive and SslRead


>
> PalmOS 5.0 reference lets me know that the SslRead is a convenience cover
of
> SslReceive.
>
> Because I need to manipulate the timeout, I use SslReceive instead, but
any
> call to SslReceive makes the simulators ( Treo600, TungstenC, common
> simulator of PamOS 5 ) and the real Treo 600 devices crash.
>
> My command is :
>
>  //count = SslReceive( gSslRef, pSslHandle->pCtx, pdata, length, 0, NULL,
> NULL,  timeout, err );
>  count =  SslRead( gSslRef, pSslHandle->pCtx, pdata, length, err );
>
> With SslRead my whole app runs fine with the remote SSL server.
>
> When I comment the SslRead and uncomment the SslReceive, then it crashes.
>
>
> Anybody experiences this ?
>
> There are a lot of people here working with SSL. Could you please make
that
> try for me ?
>
> I appreciate your help,
>
>
> Vu
>
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to