Using RWSecureSocketAttribute
In the Secure Sockets package, a secure socket attribute is represented by an instance of the RWSecureSocketAttribute class. A secure socket attribute has two parts: a secure socket and an attribute, where the attribute is a combination of any of the following:
RWSecureSocketAttribute::CANREAD
Data is available for reading.
RWSecureSocketAttribute::CANWRITE
Data can be written on the secure socket.
RWSecureSocketAttribute::EXCEPTION
An exceptional condition, such as the arrival of out-of-band data, has occurred.
RWSecureSocketAttribute::ISCONNECTED
The secure socket is connected.
RWSecureSocketAttribute::ISCLOSED
The secure socket is closed.
RWSecureSocketAttribute::CANACCEPT
A connection has arrived on this secure socket and can be received by calling RWSecureSocket::accept().
Applications can set multiple attributes by bitwise ORing them together.