@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2022 Jonathan Schleifer + * Copyright (c) 2008-2024 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -61,14 +61,15 @@ id delegate; /** * @brief Bind the socket to the specified path. * - * @param path The path to bind to - * @return The address on which this socket can be reached + * @param path The path to bind to or `nil` for an anonymous socket + * @return The address on which this socket can be reached, if a path was + * specified * @throw OFBindUNIXSocketFailedException Binding failed - * @throw OFAlreadyConnectedException The socket is already bound + * @throw OFAlreadyOpenException The socket is already bound */ -- (OFSocketAddress)bindToPath: (OFString *)path; +- (OFSocketAddress)bindToPath: (nullable OFString *)path; @end OF_ASSUME_NONNULL_END