@@ -34,14 +34,18 @@ * To connect to a server, create a socket and connect it. * To create a server, create a socket, bind it and listen on it. */ @interface OFTCPSocket: OFStreamSocket { - BOOL isListening; + BOOL listening; struct sockaddr_storage *sockAddr; socklen_t sockAddrLen; } + +#ifdef OF_HAVE_PROPERTIES +@property (assign, readonly, getter=isBlocking) BOOL *listening; +#endif /** * \brief Connect the OFTCPSocket to the specified destination. * * \param host The host to connect to