22 #ifndef OF_HAVE_SOCKETS
23 # error No sockets available!
28 OF_ASSUME_NONNULL_BEGIN
33 extern int _OFTLSHandshakeFailedException_reference OF_VISIBILITY_HIDDEN;
60 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFString *host;
75 + (instancetype)exceptionWithStream: (
OFTLSStream *)stream
79 + (instancetype)exception OF_UNAVAILABLE;
89 - (instancetype)initWithStream: (
OFTLSStream *)stream
92 OF_DESIGNATED_INITIALIZER;
94 - (instancetype)init OF_UNAVAILABLE;
OFTLSStreamErrorCode
An enum representing an error of an OFTLSStream.
Definition: OFTLSStream.h:32
The base class for all exceptions in ObjFW.
Definition: OFException.h:157
A class for handling strings.
Definition: OFString.h:143
An exception indicating that a TLS handshake.
Definition: OFTLSHandshakeFailedException.h:45
A class that provides Transport Layer Security on top of a stream.
Definition: OFTLSStream.h:78