Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SSLGetBufferedReadSize problem



Hi,

I'm implementing a client that uses Secure Transport
API to communicate with the server. 
I followed sample code at
http://developer.apple.com/samplecode/SSLSample/
to implement non-blocking socket communication. 

I'm having problems with SSLGetBufferedReadSize. After
successful SSLhandshake server sends some data to the
client. SSLGetBufferedReadSize returns zero for the
size of data to be read but If I call SSLRead after
SSLGetBufferedReadSize returns zero my client receives
all the data from the server. 
I would really like to use SSLGetBufferedReadSize to
simplify memory allocation. 

Any help is appreciated.

I'm using MacBook Pro (10.4.11).

Dragana





      Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.